@Test() public void testAppendToClause() { StringBuilder sb = new StringBuilder(); classUnderTest.appendToClause(sb); assertEquals(" WHERE myCol is null", sb.toString()); classUnderTest.appendToClause(sb); assertEquals(" WHERE myCol is null AND myCol is null", sb.toString()); }
@Test() public void testIsParameterUsed() { assertFalse(classUnderTest.isParameterUsed()); }
@Test public void testShouldBeUsed() { assertTrue(classUnderTest.shouldBeUsed()); }
@Test() public void testGetWhereClause() { assertEquals("myCol is null", classUnderTest.getWhereClause()); }
@Test(expected = IllegalStateException.class) public void testSetParameter() throws Exception { classUnderTest.setParameter(mockPstmt, 1); }