1 package net.obsearch.result; 2 3 import static org.junit.Assert.*; 4 5 import net.obsearch.OperationStatus; 6 import net.obsearch.Status; 7 8 import org.junit.Before; 9 import org.junit.Test; 10 11 public class TestResult { 12 13 @Before 14 public void setUp() throws Exception { 15 } 16 17 @Test 18 public void testSetId() { 19 OperationStatus a = new OperationStatus(Status.OK); 20 a.setId(3); 21 OperationStatus b = new OperationStatus(Status.OK); 22 b.setId(4); 23 assertEquals(a.getId(),3L); 24 assertEquals(b.getId(),4L); 25 } 26 27 28 }