Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93724120
LoggerTest.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 1, 00:03
Size
431 B
Mime Type
text/x-java
Expires
Tue, Dec 3, 00:03 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22692312
Attached To
R4434 MedCo I2b2 Cell
LoggerTest.java
View Options
package
ch.epfl.lca1.medco.util
;
import
org.junit.Assert
;
import
org.junit.Test
;
/**
* Logger class tests
*/
public
class
LoggerTest
{
@Test
public
void
testLog
()
throws
Exception
{
Logger
.
fatal
(
"text fatal msg"
);
}
@Test
public
void
testLogEx
()
{
try
{
throw
Logger
.
warn
(
"message"
,
new
IllegalArgumentException
());
}
catch
(
IllegalArgumentException
e
)
{
Assert
.
assertTrue
(
true
);
}
Assert
.
fail
();
}
}
Event Timeline
Log In to Comment