/** Testet die Methode {@link org.log.datas.LogDataFactory#message(String, Exception)}. */ @Test public void testMessageStackTrace() { Exception exception = new Exception(); _data = LogDataFactory.message(_message, exception); assertThat(_data.getMessage(), is(_message)); assertThat(_data.getError(), is(LogData.createError(exception))); assertThat(_data.getOut(), is(LogData.NONE)); }
/** * Testet die Methode {@link org.log.datas.LogDataFactory#messageDatabaseInsert(String, * Exception)}. */ @Test public void testMessageDatabaseInsertStackTrace() { Exception exception = new Exception(); _data = LogDataFactory.messageDatabaseInsert(_message, exception); assertThat(_data.getMessage(), is(_message)); assertThat(_data.getError(), is(LogData.createError(exception))); assertThat(_data.getOut(), is(LogData.DATABASE_INSERT)); }