use of com.ctrip.platform.dal.dao.client.LogEntry in project dal by ctripcorp.
the class DalConnectionTest method testGetMeta.
@Test
public void testGetMeta() throws SQLException {
Connection conn = null;
try {
DalConnection test = getConnection();
assertNotNull(test.getMeta());
LogEntry entry = new LogEntry();
assertNotNull(test.getMeta());
test.getMeta().populate(entry);
assertNotNull(test.getMeta());
} catch (Throwable e) {
fail();
e.printStackTrace();
} finally {
if (conn != null)
conn.close();
}
}
use of com.ctrip.platform.dal.dao.client.LogEntry in project dal by ctripcorp.
the class LogEntryTest method testGetCallerInShort.
@Test
public void testGetCallerInShort() {
LogEntry test = new LogEntry();
assertEquals("NativeMethodAccessorImpl.invoke", test.getCallerInShort());
}
use of com.ctrip.platform.dal.dao.client.LogEntry in project dal by ctripcorp.
the class LogEntryTest method testGetCallerInShortPopulate.
@Test
public void testGetCallerInShortPopulate() {
LogEntry.populateCurrentCaller("test.com.ctrip.platform.dal.dao.client.LogEntryTest.testGetCallerInShortPopulate");
LogEntry test = new LogEntry();
assertEquals("LogEntryTest.testGetCallerInShortPopulate", test.getCallerInShort());
LogEntry.clearCurrentCaller();
assertEquals("NativeMethodAccessorImpl.invoke", test.getCallerInShort());
}
Aggregations