use of util.SuperHero in project jdk8u_jdk by JetBrains.
the class SQLInputImplTests method setUpMethod.
@BeforeMethod
@Override
public void setUpMethod() throws Exception {
map = new HashMap<>();
impl = new TestSQLDataImpl("TestSQLData");
typeValues = Arrays.copyOf(TestSQLDataImpl.attributes, TestSQLDataImpl.attributes.length);
hero = new SuperHero(sqlType, "Bruce", "Wayne", 1939, "Batman");
}
use of util.SuperHero in project jdk8u_jdk by JetBrains.
the class SQLOutputImplTests method setUpMethod.
@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);
}
use of util.SuperHero in project jdk8u_jdk by JetBrains.
the class SerialRefTests method test06.
/*
* Validate that setObject() can be used to change the value of the object
* pointed to by the SerialRef
*/
@Test
public void test06() throws Exception {
SerialRef sr = new SerialRef(ref);
assertTrue(hero.equals(sr.getObject()));
SuperHero h = new SuperHero(sqlType, "Dick", "Grayson", 1940, "Robin");
sr.setObject(h);
assertFalse(hero.equals(sr.getObject()));
}
use of util.SuperHero in project jdk8u_jdk by JetBrains.
the class SerialRefTests method setUpMethod.
@BeforeMethod
public void setUpMethod() throws Exception {
map.put(sqlType, Class.forName("util.SuperHero"));
hero = new SuperHero(sqlType, "Bruce", "Wayne", 1939, "Batman");
ref = new StubRef(sqlType, hero);
}
use of util.SuperHero in project jdk8u_jdk by JetBrains.
the class SerialStructTests method setUpMethod.
@BeforeMethod
public void setUpMethod() throws Exception {
attributes = new Object[] { "Bruce", "Wayne", 1939, "Batman" };
map.put(sqlType, Class.forName("util.SuperHero"));
struct = new StubStruct(sqlType, attributes);
hero = new SuperHero(sqlType, "Bruce", "Wayne", 1939, "Batman");
}
Aggregations