Methods Summary |
---|
public static void | main(java.lang.String[] argList)
|
protected void | setUp()
try{
// TODO code application logic here
String url="jdbc:derby://localhost:1527/sun-callflow;retrieveMessagesFromServerOnGetMessage=true;create=true;";
Class.forName("org.apache.derby.jdbc.ClientDriver").newInstance();
con = DriverManager.getConnection(url, "APP", "APP");
// drop request start table
re = RequestEndAccessObjectImpl.getInstance();
} catch (Exception e){
e.printStackTrace();
}
|
protected void | tearDown()
try{
con.close();
} finally{
con = null;
}
|
public void | testCreateTable()Test of createTable method, of class com.sun.enterprise.admin.monitor.callflow.RequestEndAccessObjectImpl.
System.out.println("Request End testCreateTable");
boolean result = false;
try{
result = re.createTable(con);
System.out.println("Request End Create Table returned = "+ result);
}catch (Exception e){
e.printStackTrace();
}
assertTrue(result);
|
public void | testDropTable()Test of dropTable method, of class com.sun.enterprise.admin.monitor.callflow.RequestEndAccessObjectImpl.
System.out.println("Request End testDropTable");
boolean result = re.dropTable(con);
System.out.println("Request End Drop Table returned = "+result);
assertTrue (result);
|
public void | testInsert()
System.out.println(" testStorerequestEnd");
try{
String insertSQL = re.getInsertSQL();
System.out.println (" Insert SQL :"+ insertSQL);
pstmt = con.prepareStatement(insertSQL);
for (int i = 0; i < requestEnd.length; i++) {
requestEnd[i] = new RequestEndTO();
requestEnd[i].requestId = "RequestID_"+i;
requestEnd[i].timeStamp = System.nanoTime();
}
} catch (Exception e) {
e.printStackTrace();
}
boolean result = re.insert (pstmt, requestEnd);
System.out.println("testStorerequestEnd returned = "+result);
assertTrue (result);
|