@Test public void testOrdinal() { OSGIServiceContext instance = new OSGIServiceContext(Mockito.mock(OSGIServiceLoader.class)); assertThat(instance.ordinal()).isEqualTo(10); }
@Override public int ordinal() { return 10; }
OSGIServiceContext implements ServiceContext { @Override public int ordinal() { return 10; } }
OSGIServiceContext implements ServiceContext { @Override public int ordinal() { return 10; } OSGIServiceContext(OSGIServiceLoader osgiServiceLoader); }
OSGIServiceContext implements ServiceContext { @Override public int ordinal() { return 10; } OSGIServiceContext(OSGIServiceLoader osgiServiceLoader); boolean isInitialized(); @Override ClassLoader getClassLoader(); @Override void init(ClassLoader classLoader); @Override int ordinal(); @Override T getService(Class<T> serviceType, Supplier<T> supplier); @Override T create(Class<T> serviceType, Supplier<T> supplier); @Override List<T> getServices(Class<T> serviceType, Supplier<List<T>> supplier); @Override Collection<URL> getResources(String resource); @Override URL getResource(String resource); @Override T register(Class<T> serviceType, T instance, boolean force); @Override List<T> register(Class<T> serviceType, List<T> instances, boolean force); @Override void reset(); }
OSGIServiceContext implements ServiceContext { @Override public int ordinal() { return 10; } OSGIServiceContext(OSGIServiceLoader osgiServiceLoader); boolean isInitialized(); @Override ClassLoader getClassLoader(); @Override void init(ClassLoader classLoader); @Override int ordinal(); @Override T getService(Class<T> serviceType, Supplier<T> supplier); @Override T create(Class<T> serviceType, Supplier<T> supplier); @Override List<T> getServices(Class<T> serviceType, Supplier<List<T>> supplier); @Override Collection<URL> getResources(String resource); @Override URL getResource(String resource); @Override T register(Class<T> serviceType, T instance, boolean force); @Override List<T> register(Class<T> serviceType, List<T> instances, boolean force); @Override void reset();  }