@Test(expected = InjectionException.class) public void testRuntimesHostInitializedWithCorruptedRuntimesList() throws InjectionException { final JavaConfigurationBuilder cb = Tang.Factory.getTang().newConfigurationBuilder(); cb.bindNamedParameter( SerializedRuntimeDefinition.class, "corrupted avro"); final Injector forked = injector.forkInjector(cb.build()); final RuntimesHost rHost = forked.getInstance(RuntimesHost.class); rHost.onRuntimeStart(new RuntimeStart(System.currentTimeMillis())); }
void onRuntimeStart(final RuntimeStart event) { initialize(); for (final Runtime runtime : this.runtimes.values()) { runtime.onRuntimeStart(event); } }
RuntimesHost { void onRuntimeStart(final RuntimeStart event) { initialize(); for (final Runtime runtime : this.runtimes.values()) { runtime.onRuntimeStart(event); } } }
RuntimesHost { void onRuntimeStart(final RuntimeStart event) { initialize(); for (final Runtime runtime : this.runtimes.values()) { runtime.onRuntimeStart(event); } } @Inject private  RuntimesHost(
      final Injector injector,
      @Parameter(SerializedRuntimeDefinition.class) final String serializedRuntimeDefinition); }
RuntimesHost { void onRuntimeStart(final RuntimeStart event) { initialize(); for (final Runtime runtime : this.runtimes.values()) { runtime.onRuntimeStart(event); } } @Inject private  RuntimesHost(
      final Injector injector,
      @Parameter(SerializedRuntimeDefinition.class) final String serializedRuntimeDefinition);  }
RuntimesHost { void onRuntimeStart(final RuntimeStart event) { initialize(); for (final Runtime runtime : this.runtimes.values()) { runtime.onRuntimeStart(event); } } @Inject private  RuntimesHost(
      final Injector injector,
      @Parameter(SerializedRuntimeDefinition.class) final String serializedRuntimeDefinition);   }