Skip to content
Snippets Groups Projects
Commit 9c7b91cb authored by felmer's avatar felmer
Browse files

change LohMonitoringAppender.hasLogHappened() -> verifyLogHasHappened()

SVN: 1238
parent 02db4137
No related branches found
No related tags found
No related merge requests found
......@@ -109,9 +109,8 @@ public final class LogMonitoringAppender extends AppenderSkeleton
return false;
}
public boolean hasLogHappened()
public void verifyLogHasHappened()
{
return logHappened;
assert logHappened : "Following log snippet missed: " + messagePart;
}
}
......@@ -319,7 +319,7 @@ public class DirectoryScanningTimerTaskTest
dir.delete();
assert dir.exists() == false;
scanner.run();
assert appender.hasLogHappened();
appender.verifyLogHasHappened();
LogMonitoringAppender.removeAppender(appender);
}
......@@ -338,7 +338,7 @@ public class DirectoryScanningTimerTaskTest
dir.deleteOnExit();
assert dir.isFile();
scanner.run();
assert appender.hasLogHappened();
appender.verifyLogHasHappened();
dir.delete();
LogMonitoringAppender.removeAppender(appender);
}
......@@ -360,8 +360,8 @@ public class DirectoryScanningTimerTaskTest
final DirectoryScanningTimerTask scanner =
new DirectoryScanningTimerTask(dir, EXCEPTION_THROWING_FILE_FILTER, mockPathHandler);
scanner.run();
assert appender1.hasLogHappened();
assert appender2.hasLogHappened();
appender1.verifyLogHasHappened();
appender2.verifyLogHasHappened();
file.delete();
dir.delete();
LogMonitoringAppender.removeAppender(appender1);
......
......@@ -293,7 +293,7 @@ public class CopyActivityMonitorTest
monitor.stop();
LogMonitoringAppender.removeAppender(appender);
assert copyProcess.isTerminated();
assert appender.hasLogHappened();
appender.verifyLogHasHappened();
}
private final class PathLastChangedCheckerStuck implements IPathLastChangedChecker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment