@Test(expected = UnsupportedOperationException.class) public void testCreateConsumer() throws Exception { OsgiRandomEndpoint endpoint = createEndpoint(); Processor processor = mock(Processor.class); endpoint.createConsumer(processor); }
@Override public Consumer createConsumer(Processor processor) throws Exception { throw new UnsupportedOperationException(String.format("[%s] does not support consumers. Use [%s] instead.", getClass().getName(), getClass().getSuperclass().getName())); }
OsgiRandomEndpoint extends OsgiDefaultEndpoint { @Override public Consumer createConsumer(Processor processor) throws Exception { throw new UnsupportedOperationException(String.format("[%s] does not support consumers. Use [%s] instead.", getClass().getName(), getClass().getSuperclass().getName())); } }
OsgiRandomEndpoint extends OsgiDefaultEndpoint { @Override public Consumer createConsumer(Processor processor) throws Exception { throw new UnsupportedOperationException(String.format("[%s] does not support consumers. Use [%s] instead.", getClass().getName(), getClass().getSuperclass().getName())); } OsgiRandomEndpoint(String endpointUri, Component component); }
OsgiRandomEndpoint extends OsgiDefaultEndpoint { @Override public Consumer createConsumer(Processor processor) throws Exception { throw new UnsupportedOperationException(String.format("[%s] does not support consumers. Use [%s] instead.", getClass().getName(), getClass().getSuperclass().getName())); } OsgiRandomEndpoint(String endpointUri, Component component); @Override Consumer createConsumer(Processor processor); @Override Producer createProducer(); }
OsgiRandomEndpoint extends OsgiDefaultEndpoint { @Override public Consumer createConsumer(Processor processor) throws Exception { throw new UnsupportedOperationException(String.format("[%s] does not support consumers. Use [%s] instead.", getClass().getName(), getClass().getSuperclass().getName())); } OsgiRandomEndpoint(String endpointUri, Component component); @Override Consumer createConsumer(Processor processor); @Override Producer createProducer();  }