7172737475767778798081
}; public LogQueryResultImpl createDummy() { final LogQueryEntryImpl entry = LogQueryEntryImplTest.createDummy(); final LogQueryResultImpl impl = new LogQueryResultImpl( FIELD_NAMES, new LogQueryEntryImpl[] { entry } ); return impl;
201202203204205206207208209210
for( int fieldIdx = 0; fieldIdx < fieldValues.length; ++fieldIdx ) { fieldValues[ fieldIdx ] = record.get( fieldIdx ); } entries[ recordIdx ] = new LogQueryEntryImpl( fieldValues ); } return new LogQueryResultImpl( fieldHeaders, entries ); }
7071727374757677787980
} public static LogQueryEntryImpl createDummy() { return new LogQueryEntryImpl( 0, new Date(), Level.OFF.toString(), "Sun Appserver whatever", "hello world",
90919293949596979899100101102103104
} public void testEquals() { final LogQueryEntryImpl d = createDummy(); assertEquals( d, d ); final LogQueryEntryImpl dCopy = new LogQueryEntryImpl( d.getRecordNumber(), d.getDate(), d.getLevel(), d.getProductName(), d.getMessage(),
112113114115116117118119120121122
public void testGetNameValuePairsMap() { final LogQueryEntryImpl d = createDummy(); final Map<String,String> m = d.getNameValuePairsMap(); assertEquals( V1, m.get( N1 ) ); assertEquals( V2, m.get( N2 ) ); }
123124125126127128129130131132133134135136137138139
public void testGetters() throws OpenDataException { final LogQueryEntryImpl d = createDummy(); d.getRecordNumber(); d.getDate(); d.getLevel(); d.getMessage(); d.getMessageID(); d.getModule(); d.getMessage(); d.getNameValuePairs(); d.getNameValuePairsMap(); }