SetupOutputFieldsDeclarer implements OutputFieldsDeclarer { @Override public void declareStream(final String streamId, final Fields fields) { this.declareStream(streamId, false, fields); }  @Override void declare(final Fields fields); @Override void declare(final boolean direct, final Fields fields); @Override void declareStream(final String streamId, final Fields fields); @Override void declareStream(final String streamId, final boolean direct, final Fields fields);  }
@Test public void testDeclareStream() { new SetupOutputFieldsDeclarer().declareStream(Utils.DEFAULT_STREAM_ID, new Fields()); }
@Test(expected = IllegalArgumentException.class) public void testDeclareStreamFail() { new SetupOutputFieldsDeclarer().declareStream(null, new Fields()); }
@Test public void testDeclareFullStream() { new SetupOutputFieldsDeclarer().declareStream(Utils.DEFAULT_STREAM_ID, false, new Fields()); }
@Test(expected = IllegalArgumentException.class) public void testDeclareFullStreamFailNonDefaultStream() { new SetupOutputFieldsDeclarer().declareStream(null, false, new Fields()); }
@Test(expected = UnsupportedOperationException.class) public void testDeclareFullStreamFailDirect() { new SetupOutputFieldsDeclarer().declareStream(Utils.DEFAULT_STREAM_ID, true, new Fields()); }