#2703 - unprivatizing NoLogging and adding a Java API for obtaining the reference
This commit is contained in:
parent
299d375f0c
commit
8194ddd13c
3 changed files with 28 additions and 11 deletions
|
|
@ -1,5 +1,7 @@
|
|||
package akka.japi;
|
||||
|
||||
import akka.event.LoggingAdapter;
|
||||
import akka.event.NoLogging;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
|
@ -46,4 +48,10 @@ public class JavaAPITestBase {
|
|||
public void shouldBeSingleton() {
|
||||
assertSame(Option.none(), Option.none());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void mustBeAbleToGetNoLogging() {
|
||||
LoggingAdapter a = NoLogging.getInstance();
|
||||
assertNotNull(a);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue