1 changed files with 34 additions and 0 deletions
			
			
		| @ -0,0 +1,34 @@ | |||
| package solution; | |||
| 
 | |||
| import static org.junit.jupiter.api.Assertions.assertEquals; | |||
| 
 | |||
| import org.junit.Test; | |||
| import org.junit.jupiter.api.BeforeEach; | |||
| 
 | |||
| public abstract class SimpleListTest90 { | |||
| 
 | |||
| 	//ISimpleList<Integer> list;
 | |||
| 	ISimpleList<Node<Integer>> nodeList; | |||
| 	 | |||
| 	protected ISimpleList<Integer> getInstance1() { | |||
| 		// TODO Auto-generated method stub
 | |||
| 		return null; | |||
| 	} | |||
| 
 | |||
| 	protected ISimpleList<Node<Integer>> getInstance2() { | |||
| 		// TODO Auto-generated method stub
 | |||
| 		return null; | |||
| 	} | |||
| 
 | |||
| 	@BeforeEach | |||
| 	void setUp() throws Exception{ | |||
| 		nodeList = getInstance2(); | |||
| 	} | |||
| 	 | |||
| 	@Test | |||
| 	void testAdd(Node<Integer> node) { | |||
| 		boolean actual = nodeList.add(node); | |||
| 		 | |||
| 		assertEquals(true, actual); | |||
| 	} | |||
| } | |||
					Loading…
					
					
				
		Reference in new issue