@Test public void testUsageWithNoVariableReplacement() throws Exception { UsageCreator creator = new UsageCreator(UsageProvider.ofString("I LIKE TACOS"), null); assertThat(creator.getUsageMessage()).isEqualTo("I LIKE TACOS"); }
public String getUsageMessage() throws Exception { return replaceVariables(readRawUsage()); }
UsageCreator { public String getUsageMessage() throws Exception { return replaceVariables(readRawUsage()); } }
UsageCreator { public String getUsageMessage() throws Exception { return replaceVariables(readRawUsage()); } UsageCreator();  UsageCreator(UsageProvider provider, UsageVariableSupplier supplier); }
UsageCreator { public String getUsageMessage() throws Exception { return replaceVariables(readRawUsage()); } UsageCreator();  UsageCreator(UsageProvider provider, UsageVariableSupplier supplier); @PostConstruct void setupDelegateSupplier(); String getUsageMessage(); String readRawUsage(); String replaceVariables(String raw); }
UsageCreator { public String getUsageMessage() throws Exception { return replaceVariables(readRawUsage()); } UsageCreator();  UsageCreator(UsageProvider provider, UsageVariableSupplier supplier); @PostConstruct void setupDelegateSupplier(); String getUsageMessage(); String readRawUsage(); String replaceVariables(String raw);  }