@Test public void canPushString() { final String value1 = "first"; testStrQueue.push(value1); final String value2 = testStrQueue.getHead(); assertEquals(value1, value2); }
@Test public void checkHeadFromEmptyQueue() { final String value1 = testStrQueue.getHead(); assertEquals(null, value1); }
@Test(expected = Exception.class) public void cantFindElement() throws Exception { testStrQueue.push("first"); testStrQueue.findElement("second"); }