Project

General

Profile

« Previous | Next » 

Revision e5890d39

Added by Andreas Müller over 8 years ago

add test for disassamble

View differences:

cdmlib-model/src/test/java/eu/etaxonomy/cdm/hibernate/ShiftUsertTypeTest.java
45 45
	public void testDisassembleObject() {
46 46
		Serializable nullValue = this.shiftUserType.disassemble(null);
47 47
		Assert.assertNull(nullValue);
48
		Serializable emptyValue = this.shiftUserType.disassemble(new Shift[0]);
49
		Assert.assertEquals("", emptyValue);
50
		Serializable singleValue = this.shiftUserType.disassemble(new Shift[]{new Shift(2, 3)});
51
		Assert.assertEquals("2,3", singleValue);
52
		Serializable twoValues = this.shiftUserType.disassemble(new Shift[]{new Shift(2, 3),new Shift(3, -1)});
53
		Assert.assertEquals("2,3;3,-1", twoValues);
48 54
	}
49 55

  
50 56
	/**

Also available in: Unified diff