mil.dod.th.ose.logging/test/mil/dod/th/ose/logging/TestLogUtil.java
@Test
    public void testConvertNativeToOsgiLevel()
    {
        assertThat(LogUtil.convertNativeToOsgiLevel(LogLevel.Debug), is(LogService.LOG_DEBUG));
        assertThat(LogUtil.convertNativeToOsgiLevel(LogLevel.Info), is(LogService.LOG_INFO));
        assertThat(LogUtil.convertNativeToOsgiLevel(LogLevel.Warning), is(LogService.LOG_WARNING));
        assertThat(LogUtil.convertNativeToOsgiLevel(LogLevel.Error), is(LogService.LOG_ERROR));
    }
/**
     * Verify a native level can be converted to an OSGi log level.
     */
Verify a native level can be converted to an OSGi log level.
Verify a native level can be converted to an OSGi log level .
@Test
    public void testConvertNativeToOsgiLevel()
    {
        assertThat(LogUtil.convertNativeToOsgiLevel(LogLevel.Debug), is(LogService.LOG_DEBUG));
        assertThat(LogUtil.convertNativeToOsgiLevel(LogLevel.Info), is(LogService.LOG_INFO));
        assertThat(LogUtil.convertNativeToOsgiLevel(LogLevel.Warning), is(LogService.LOG_WARNING));
        assertThat(LogUtil.convertNativeToOsgiLevel(LogLevel.Error), is(LogService.LOG_ERROR));
    }
@ Test public void testConvertNativeToOsgiLevel ( ) { assertThat ( LogUtil . convertNativeToOsgiLevel ( LogLevel . Debug ) , is ( LogService . LOG_DEBUG ) ) ; assertThat ( LogUtil . convertNativeToOsgiLevel ( LogLevel . Info ) , is ( LogService . LOG_INFO ) ) ; assertThat ( LogUtil . convertNativeToOsgiLevel ( LogLevel . Warning ) , is ( LogService . LOG_WARNING ) ) ; assertThat ( LogUtil . convertNativeToOsgiLevel ( LogLevel . Error ) , is ( LogService . LOG_ERROR ) ) ; }
Verify a native level can be converted to an OSGi log level.
Verify a native level can be converted to an OSGi log level .