#2703 - unprivatizing NoLogging and adding a Java API for obtaining the reference

This commit is contained in:
Viktor Klang 2012-11-15 02:31:40 +01:00
parent 299d375f0c
commit 8194ddd13c
3 changed files with 28 additions and 11 deletions

View file

@ -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);
}
}