@Test public void testGetInstance$extension$notValid() throws Exception { final File file=extensionConfigFile("not_valid.cfg"); new MockUp<RuntimeDelegate>() { @Mock File getConfigurationFile() { return file; } }; verifyIsDefault(sut()); }
public static RuntimeDelegate getInstance() { RuntimeDelegate result = RuntimeDelegate.CACHED_DELEGATE.get(); if (result != null) { return result; } synchronized(RuntimeDelegate.CACHED_DELEGATE) { result=RuntimeDelegate.CACHED_DELEGATE.get(); if(result==null) { result=findDelegate(); if(result==null) { result=new DefaultRuntimeDelegate(); } RuntimeDelegate.CACHED_DELEGATE.set(result); } return result; } }
RuntimeDelegate { public static RuntimeDelegate getInstance() { RuntimeDelegate result = RuntimeDelegate.CACHED_DELEGATE.get(); if (result != null) { return result; } synchronized(RuntimeDelegate.CACHED_DELEGATE) { result=RuntimeDelegate.CACHED_DELEGATE.get(); if(result==null) { result=findDelegate(); if(result==null) { result=new DefaultRuntimeDelegate(); } RuntimeDelegate.CACHED_DELEGATE.set(result); } return result; } } }
RuntimeDelegate { public static RuntimeDelegate getInstance() { RuntimeDelegate result = RuntimeDelegate.CACHED_DELEGATE.get(); if (result != null) { return result; } synchronized(RuntimeDelegate.CACHED_DELEGATE) { result=RuntimeDelegate.CACHED_DELEGATE.get(); if(result==null) { result=findDelegate(); if(result==null) { result=new DefaultRuntimeDelegate(); } RuntimeDelegate.CACHED_DELEGATE.set(result); } return result; } } protected  RuntimeDelegate(); }
RuntimeDelegate { public static RuntimeDelegate getInstance() { RuntimeDelegate result = RuntimeDelegate.CACHED_DELEGATE.get(); if (result != null) { return result; } synchronized(RuntimeDelegate.CACHED_DELEGATE) { result=RuntimeDelegate.CACHED_DELEGATE.get(); if(result==null) { result=findDelegate(); if(result==null) { result=new DefaultRuntimeDelegate(); } RuntimeDelegate.CACHED_DELEGATE.set(result); } return result; } } protected  RuntimeDelegate(); static RuntimeDelegate getInstance(); static void setInstance(final RuntimeDelegate delegate); abstract boolean isOffline(); abstract WriteSession createSession(); abstract ResourceSnapshotResolver createResourceResolver(URI canonicalBase, ReadSession session); abstract void registerShutdownListener(ShutdownListener listener); }
RuntimeDelegate { public static RuntimeDelegate getInstance() { RuntimeDelegate result = RuntimeDelegate.CACHED_DELEGATE.get(); if (result != null) { return result; } synchronized(RuntimeDelegate.CACHED_DELEGATE) { result=RuntimeDelegate.CACHED_DELEGATE.get(); if(result==null) { result=findDelegate(); if(result==null) { result=new DefaultRuntimeDelegate(); } RuntimeDelegate.CACHED_DELEGATE.set(result); } return result; } } protected  RuntimeDelegate(); static RuntimeDelegate getInstance(); static void setInstance(final RuntimeDelegate delegate); abstract boolean isOffline(); abstract WriteSession createSession(); abstract ResourceSnapshotResolver createResourceResolver(URI canonicalBase, ReadSession session); abstract void registerShutdownListener(ShutdownListener listener); static final String APPLICATION_ENGINE_SPI_FINDER; static final String APPLICATION_ENGINE_SPI_CFG; static final String APPLICATION_ENGINE_SPI_PROPERTY; }