mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fix for slight coding issue - note there are no recorded problems from this.
Replaced String == with String.equals. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@105496 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -204,9 +204,10 @@ public class ClassificationServiceBootstrapUnitTest
|
|||||||
// Check that the warning message was logged.
|
// Check that the warning message was logged.
|
||||||
verify(mockAppender).doAppend(loggingEventCaptor.capture());
|
verify(mockAppender).doAppend(loggingEventCaptor.capture());
|
||||||
List<LoggingEvent> loggingEvents = loggingEventCaptor.getAllValues();
|
List<LoggingEvent> loggingEvents = loggingEventCaptor.getAllValues();
|
||||||
Stream<String> messages = loggingEvents.stream().map(event -> event.getRenderedMessage());
|
Stream<String> messages = loggingEvents.stream()
|
||||||
|
.map(LoggingEvent::getRenderedMessage);
|
||||||
String expectedMessage = "Classification reasons configured in classpath do not match those stored in Alfresco. Alfresco will use the unchanged values stored in the database.";
|
String expectedMessage = "Classification reasons configured in classpath do not match those stored in Alfresco. Alfresco will use the unchanged values stored in the database.";
|
||||||
assertTrue("Warning message not found in log.", messages.anyMatch(message -> message == expectedMessage));
|
assertTrue("Warning message not found in log.", messages.anyMatch(message -> expectedMessage.equals(message)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected = MissingConfiguration.class)
|
@Test(expected = MissingConfiguration.class)
|
||||||
|
Reference in New Issue
Block a user