@Test public void defaultConfig() throws Exception { StdOutWriter writerFactory = new StdOutWriter(ImmutableList.<String>of(), false, false, null, Collections.<String, Object>emptyMap()); OutputWriter writer = writerFactory.create(); writer.doWrite(dummyServer(), dummyQuery(), ResultFixtures.dummyResults()); assertThat(byteArrayOutputStream.toString()).contains("Result("); assertThat(byteArrayOutputStream.toString()).contains("typeName=type=Memory"); }
@Override public OutputWriter create() { return new W( typeNames, booleanAsNumber, debugEnabled, settings, resultSerializer ); }
StdOutWriter implements OutputWriterFactory { @Override public OutputWriter create() { return new W( typeNames, booleanAsNumber, debugEnabled, settings, resultSerializer ); } }
StdOutWriter implements OutputWriterFactory { @Override public OutputWriter create() { return new W( typeNames, booleanAsNumber, debugEnabled, settings, resultSerializer ); } @JsonCreator  StdOutWriter(
			@JsonProperty("typeNames") ImmutableList<String> typeNames,
			@JsonProperty("booleanAsNumber") boolean booleanAsNumber,
			@JsonProperty("debug") Boolean debugEnabled,
			@JsonProperty("resultSerializer") ResultSerializer resultSerializer,
			@JsonProperty("settings") Map<String, Object> settings
			); }
StdOutWriter implements OutputWriterFactory { @Override public OutputWriter create() { return new W( typeNames, booleanAsNumber, debugEnabled, settings, resultSerializer ); } @JsonCreator  StdOutWriter(
			@JsonProperty("typeNames") ImmutableList<String> typeNames,
			@JsonProperty("booleanAsNumber") boolean booleanAsNumber,
			@JsonProperty("debug") Boolean debugEnabled,
			@JsonProperty("resultSerializer") ResultSerializer resultSerializer,
			@JsonProperty("settings") Map<String, Object> settings
			); @Override OutputWriter create(); }
StdOutWriter implements OutputWriterFactory { @Override public OutputWriter create() { return new W( typeNames, booleanAsNumber, debugEnabled, settings, resultSerializer ); } @JsonCreator  StdOutWriter(
			@JsonProperty("typeNames") ImmutableList<String> typeNames,
			@JsonProperty("booleanAsNumber") boolean booleanAsNumber,
			@JsonProperty("debug") Boolean debugEnabled,
			@JsonProperty("resultSerializer") ResultSerializer resultSerializer,
			@JsonProperty("settings") Map<String, Object> settings
			); @Override OutputWriter create();  }