@BeforeMethod @Override public void setUpMethod() throws Exception { results = new Vector(); impl = new TestSQLDataImpl("TestSQLData"); typeValues = Arrays.copyOf(TestSQLDataImpl.attributes, TestSQLDataImpl.attributes.length); hero = new SuperHero(sqlType, "Bruce", "Wayne", 1939, "Batman"); outImpl = new SQLOutputImpl(results, map); }
@Override protected void setUp() throws Exception { super.setUp(); attr = new Vector(); Map<String, Class<?>> map = new HashMap<String, Class<?>>(); impl = new SQLOutputImpl(attr, map); }
@Test(expectedExceptions = SQLException.class) public void test() throws Exception { SQLOutputImpl x = new SQLOutputImpl(null, map); }
@Test(expectedExceptions = SQLException.class) public void test02() throws Exception { SQLOutputImpl x = new SQLOutputImpl(results, null); }