-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
let all loggers use non-anonymous parent class names
- Loading branch information
1 parent
9daad64
commit 0576cfe
Showing
4 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package klite | ||
|
||
import ch.tutteli.atrium.api.fluent.en_GB.toBeAnInstanceOf | ||
import ch.tutteli.atrium.api.fluent.en_GB.toEqual | ||
import ch.tutteli.atrium.api.verbs.expect | ||
import org.junit.jupiter.api.Test | ||
import java.util.Date | ||
|
||
class LoggerTest { | ||
@Test fun name() { | ||
expect(nonAnonymousClassName()).toEqual(LoggerTest::class.java.name) | ||
expect(object: Date() {}.nonAnonymousClassName()).toEqual(Date::class.java.name) | ||
} | ||
|
||
@Test fun testLogger() { | ||
expect(logger()).toBeAnInstanceOf<System.Logger>() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters