@Test public void data_provider_gives_TXT_so_outputformat_txt() { ContentTransformerData data = new ContentTransformerData(); data.filename="filename"; data.origin="origin"; transformerToTest.setDataProvider(new PlantUMLDataProvider() { @Override public PlantUMLOutputFormat getOutputFormat() { return PlantUMLOutputFormat.TXT; } }); String result = transformerToTest.transform(data); assertEquals("[plantuml,filename,txt]\n" + "----\n" + "origin\n" + "----\n" + "", result); }
public void setDataProvider(PlantUMLDataProvider provider) { this.provider=provider; }
PlantUMLContentTransformer extends AbstractContentTransformer { public void setDataProvider(PlantUMLDataProvider provider) { this.provider=provider; } }
PlantUMLContentTransformer extends AbstractContentTransformer { public void setDataProvider(PlantUMLDataProvider provider) { this.provider=provider; }  }
PlantUMLContentTransformer extends AbstractContentTransformer { public void setDataProvider(PlantUMLDataProvider provider) { this.provider=provider; }  void setDataProvider(PlantUMLDataProvider provider); @Override boolean isTransforming(Object data); }
PlantUMLContentTransformer extends AbstractContentTransformer { public void setDataProvider(PlantUMLDataProvider provider) { this.provider=provider; }  void setDataProvider(PlantUMLDataProvider provider); @Override boolean isTransforming(Object data);  }