package com.intel.media.mts.dao.impl;

import org.junit.Assert;
import org.junit.Test;

import com.intel.media.mts.dao.DaoTestSupport;
import com.intel.media.mts.model.Software;

public class SoftwareDaoImplTest extends DaoTestSupport {

	@Test
	public void test(){
		Software s = new Software();
		String name = "Ubuntu";
		String desc = "OS type 12.04";
		s.setName(name);
		s.setDescription(desc);
		softwareDao.doSave(s);
		System.out.println(s);
		Software s2 = softwareDao.findById(s.getId());
		Assert.assertEquals(name, s2.getName());
		Assert.assertEquals(desc, s2.getDescription());
	}
}
