Skip to content

Commit

Permalink
Change default preferences to JUnit 5 and no test method prefix
Browse files Browse the repository at this point in the history
We should use current and recommended default values. If people have
older frameworks in use, they can enable the older versions and a prefix
on their own.
  • Loading branch information
Bananeweizen authored and RoiSoleil committed Dec 11, 2023
1 parent b58673e commit b60a372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public interface PreferenceConstants
boolean DEFAULT_SWITCH_TO_MATCHING_METHOD = true;
String DEFAULT_TEST_PACKAGE_PREFIX = "";
String DEFAULT_TEST_PACKAGE_SUFFIX = "";
String DEFAULT_TEST_TYPE = PreferenceConstants.TEST_TYPE_VALUE_JUNIT_4;
String DEFAULT_TEST_TYPE = PreferenceConstants.TEST_TYPE_VALUE_JUNIT_5;
String DEFAULT_TEST_SUPERCLASS = "";
boolean DEFAULT_EXTENDED_TEST_METHOD_SEARCH = true;
boolean DEFAULT_ENABLE_TEST_METHOD_SEARCH_BY_NAME = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected static final IPreferenceStore initStore(IPreferenceStore store)
store.setDefault(PreferenceConstants.SWITCH_TO_MATCHING_METHOD, PreferenceConstants.DEFAULT_SWITCH_TO_MATCHING_METHOD);
store.setDefault(PreferenceConstants.TEST_PACKAGE_PREFIX, PreferenceConstants.DEFAULT_TEST_PACKAGE_PREFIX);
store.setDefault(PreferenceConstants.TEST_SUPERCLASS, PreferenceConstants.DEFAULT_TEST_SUPERCLASS);
store.setDefault(PreferenceConstants.TEST_METHOD_TYPE, PreferenceConstants.TEST_METHOD_TYPE_JUNIT3);
store.setDefault(PreferenceConstants.TEST_METHOD_TYPE, PreferenceConstants.TEST_METHOD_TYPE_NO_PREFIX);
store.setDefault(PreferenceConstants.EXTENDED_TEST_METHOD_SEARCH, PreferenceConstants.DEFAULT_EXTENDED_TEST_METHOD_SEARCH);
store.setDefault(PreferenceConstants.ENABLE_TEST_METHOD_SEARCH_BY_NAME, PreferenceConstants.DEFAULT_ENABLE_TEST_METHOD_SEARCH_BY_NAME);
store.setDefault(PreferenceConstants.TEST_CLASS_NAME_TEMPLATE, PreferenceConstants.DEFAULT_TEST_CLASS_NAME_TEMPLATE);
Expand Down

0 comments on commit b60a372

Please sign in to comment.