Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class Option {
public String label;
public String description;
public boolean isAdvanced;
public boolean picked;

public Option(String label) {
this.label = label;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,9 @@ private static List<String> determineMethodsToGenerate(List<String> lifecycleAnn
.map(annotation -> new Option(annotation, "@" + annotation,
capitalize(getSuggestedMethodNameByAnnotation(annotation)) + " Method"))
.collect(Collectors.toList());
methodList.add(0, new Option("Test", "@Test", "Test Method"));
final Option testMethod = new Option("Test", "@Test", "Test Method");
testMethod.picked = true;
methodList.add(0, testMethod);
return (List<String>) JUnitPlugin.askClientForChoice("Select methods to generate",
methodList, true /*pickMany*/);
}
Expand Down