@Test public void testRAMCreation() { RAM ram = factory.createRAM( 1231321L, "vengance", "corsair vengance ram", "4GB", 400, "Dula Module", 22, 0); Assert.assertEquals(0, ram.isActive().intValue()); }
@Test public void testRAMCreationUpdate() { RAM ram = factory.createRAM( 1231321L, "vengance", "corsair vengance ram", "4GB", 400, "Dula Module", 22, 0); Assert.assertEquals(0, ram.isActive().intValue()); RAM updateRAM = new RAM.Builder().copy(ram).active(0).build(); Assert.assertEquals(0, updateRAM.isActive().intValue()); Assert.assertEquals("vengance", updateRAM.getCode()); }