mirror of
https://github.com/rasilon/ujetl.git
synced 2026-04-11 10:29:29 +00:00
Tigten up TimeLimiter test, and add default test logging config
This commit is contained in:
parent
981b59225b
commit
31a2968f6a
2 changed files with 17 additions and 1 deletions
|
|
@ -18,8 +18,11 @@ public class TestTimeLimiter {
|
|||
Thread.sleep(10000);
|
||||
|
||||
fail("Sleep wasn't interrupted by the limiter!");
|
||||
} catch(Exception e) {
|
||||
} catch(java.lang.InterruptedException e) {
|
||||
// Pass
|
||||
} catch(Exception e) {
|
||||
e.printStackTrace();
|
||||
fail("Unexpected exception.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
13
src/test/resources/log4j2.xml
Normal file
13
src/test/resources/log4j2.xml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Configuration status="INFO">
|
||||
<Appenders>
|
||||
<Console name="Console" target="SYSTEM_OUT">
|
||||
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
|
||||
</Console>
|
||||
</Appenders>
|
||||
<Loggers>
|
||||
<Root level="INFO">
|
||||
<AppenderRef ref="Console"/>
|
||||
</Root>
|
||||
</Loggers>
|
||||
</Configuration>
|
||||
Loading…
Add table
Add a link
Reference in a new issue