org.junit.contrib.java.lang.system.SystemOutRule Java Examples

The following examples show how to use org.junit.contrib.java.lang.system.SystemOutRule. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ThenSomeOutcome.java    From audit4j-demo with Apache License 2.0 4 votes vote down vote up
public ThenSomeOutcome the_console_log_contains_the_expected_output_for_event_builder(@Hidden SystemOutRule systemOutRule) {
	assertTrue(systemOutRule.getLog().contains(TesterUtil.expectedOutputEV));
	return self();	
	
}
 
Example #2
Source File: ThenSomeOutcome.java    From audit4j-demo with Apache License 2.0 4 votes vote down vote up
public ThenSomeOutcome the_console_log_contains_the_expected_output_for_audit_event(@Hidden SystemOutRule systemOutRule) {
	assertTrue(systemOutRule.getLog().contains(TesterUtil.expectedOutputAE));
	return self();	
	
}
 
Example #3
Source File: ThenSomeOutcome.java    From audit4j-demo with Apache License 2.0 4 votes vote down vote up
public ThenSomeOutcome the_console_log_contains_the_audit4j_logo_with_version_$(@Hidden SystemOutRule systemOutRule,@Quoted Version version) {
	assertTrue(systemOutRule.getLog(),systemOutRule.getLog().contains("  / ___ \\ |_| | (_| | | |_|__   _| |\r\n"));
	assertTrue(systemOutRule.getLog(),systemOutRule.getLog().contains(version.toString()));
	return self();	
}
 
Example #4
Source File: ThenSomeOutcome.java    From audit4j-demo with Apache License 2.0 3 votes vote down vote up
public ThenSomeOutcome the_console_log_does_not_contains_messages_for_event_builder(@Hidden SystemOutRule systemOutRule) {
	assertFalse(systemOutRule.getLog().contains(TesterUtil.expectedOutputEV));
	

	return self();	
	
}