@Test public void addSnippet() { toTest.addSnippet(new ExampleSnippet("Query Car","List<Car> cars = null;")); final ExampleSnippet snippet = toTest.getSnippets().iterator().next(); assertEquals(snippet.getLabel(),"Query Car"); assertEquals(snippet.getSnippet(),"List<Car> cars = null;"); }
public boolean addSnippet(ExampleSnippet exampleSnippet) { return snippets.add(exampleSnippet); }
RunningCodeViewModel { public boolean addSnippet(ExampleSnippet exampleSnippet) { return snippets.add(exampleSnippet); } }
RunningCodeViewModel { public boolean addSnippet(ExampleSnippet exampleSnippet) { return snippets.add(exampleSnippet); } RunningCodeViewModel(RunPreparation preparation); }
RunningCodeViewModel { public boolean addSnippet(ExampleSnippet exampleSnippet) { return snippets.add(exampleSnippet); } RunningCodeViewModel(RunPreparation preparation); String getCodeSnippet(); void setCodeSnippet(String codeSnippet); static RunningCodeViewModel create(RunPreparation preparation); TextViewModel getConsoleView(); void runCode(); Iterable<ExampleSnippet> getSnippets(); boolean addSnippet(ExampleSnippet exampleSnippet); Disposable addTextChangedListener(NoArgAction event); }
RunningCodeViewModel { public boolean addSnippet(ExampleSnippet exampleSnippet) { return snippets.add(exampleSnippet); } RunningCodeViewModel(RunPreparation preparation); String getCodeSnippet(); void setCodeSnippet(String codeSnippet); static RunningCodeViewModel create(RunPreparation preparation); TextViewModel getConsoleView(); void runCode(); Iterable<ExampleSnippet> getSnippets(); boolean addSnippet(ExampleSnippet exampleSnippet); Disposable addTextChangedListener(NoArgAction event);  }