[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch master updated. v_0.9.30-50-g8f6d534
added by portage for gitosis-gentoo
git-noreply at pixie.qos.ch
Wed Oct 26 13:27:31 CEST 2011
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Logback: the generic, reliable, fast and flexible logging framework.".
The branch, master has been updated
via 8f6d5349ae6d3286726a74188512f249ea352866 (commit)
from 30bf0d638f0b95bac0ed0912f059d187c560b73d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.qos.ch/gitweb/?p=logback.git;a=commit;h=8f6d5349ae6d3286726a74188512f249ea352866
http://github.com/ceki/logback/commit/8f6d5349ae6d3286726a74188512f249ea352866
commit 8f6d5349ae6d3286726a74188512f249ea352866
Author: Ceki Gulcu <ceki at qos.ch>
Date: Wed Oct 26 13:27:12 2011 +0200
ongoing work
diff --git a/logback-classic/src/test/java/ch/qos/logback/classic/turbo/ReconfigureOnChangeTest.java b/logback-classic/src/test/java/ch/qos/logback/classic/turbo/ReconfigureOnChangeTest.java
index 1c2acb0..df3ecd6 100644
--- a/logback-classic/src/test/java/ch/qos/logback/classic/turbo/ReconfigureOnChangeTest.java
+++ b/logback-classic/src/test/java/ch/qos/logback/classic/turbo/ReconfigureOnChangeTest.java
@@ -13,9 +13,9 @@
*/
package ch.qos.logback.classic.turbo;
-import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
import java.io.*;
import java.net.MalformedURLException;
@@ -344,14 +344,10 @@ public class ReconfigureOnChangeTest {
enum UpdateType {TOUCH, MALFORMED, MALFORMED_INNER}
- void writeToFile(File file, String contents) {
- try {
- FileWriter fw = new FileWriter(file);
- fw.write(contents);
- fw.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
+ void writeToFile(File file, String contents) throws IOException {
+ FileWriter fw = new FileWriter(file);
+ fw.write(contents);
+ fw.close();
}
class Updater extends RunnableWithCounterAndDone {
@@ -383,21 +379,31 @@ public class ReconfigureOnChangeTest {
touchFile();
break;
case MALFORMED:
- malformedUpdate(counter);
+ try {
+ malformedUpdate(counter);
+ } catch (IOException e) {
+ e.printStackTrace();
+ fail("malformedUpdate failed");
+ }
break;
case MALFORMED_INNER:
- malformedInnerUpdate(counter);
+ try {
+ malformedInnerUpdate(counter);
+ } catch (IOException e) {
+ e.printStackTrace();
+ fail("malformedInnerUpdate failed");
+ }
}
}
}
- private void malformedUpdate(long counter) {
+ private void malformedUpdate(long counter) throws IOException {
writeToFile(configFile, "<configuration scan=\"true\" scanPeriod=\"50 millisecond\">\n" +
" <root level=\"ERROR\">\n" +
"</configuration>");
}
- private void malformedInnerUpdate(long counter) {
+ private void malformedInnerUpdate(long counter) throws IOException {
writeToFile(configFile, "<included>\n" +
" <root>\n" +
"</included>");
-----------------------------------------------------------------------
Summary of changes:
.../classic/turbo/ReconfigureOnChangeTest.java | 32 ++++++++++++--------
1 files changed, 19 insertions(+), 13 deletions(-)
hooks/post-receive
--
Logback: the generic, reliable, fast and flexible logging framework.
More information about the logback-dev
mailing list