Skip to content
Closed
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 @@ -407,6 +407,9 @@ private CorrectionMessages() {
public static String AdvancedQuickAssistProcessor_joinWithOr_description;
public static String AdvancedQuickAssistProcessor_splitOrCondition_description;
public static String AdvancedQuickAssistProcessor_exchangeOperands_description;
public static String AdvancedQuickAssistProcessor_addEnumSourceNamesFilter_description;
public static String AdvancedQuickAssistProcessor_addEnumSourceNamesFilterExclude_description;
public static String AdvancedQuickAssistProcessor_toggleEnumSourceMode_description;
public static String AddGetterSetter_creategetterssettersfortype_description;
public static String AddGettersSetters_additional_info;
public static String AddHashCodeEquals_createhashcodeequalsfortype_description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ AdvancedQuickAssistProcessor_splitAndCondition_description=Split && condition
AdvancedQuickAssistProcessor_joinWithOr_description=Join selected 'if' statements with ||
AdvancedQuickAssistProcessor_splitOrCondition_description=Split || condition
AdvancedQuickAssistProcessor_exchangeOperands_description=Exchange left and right operands for infix expression
AdvancedQuickAssistProcessor_addEnumSourceNamesFilter_description=Add 'names' filter to @EnumSource
AdvancedQuickAssistProcessor_addEnumSourceNamesFilterExclude_description=Add 'names' filter with EXCLUDE mode to @EnumSource
AdvancedQuickAssistProcessor_toggleEnumSourceMode_description=Toggle @EnumSource mode between INCLUDE and EXCLUDE

AddTypeParameterProposal_method_label=Add type parameter ''{0}'' to ''{1}''
AddTypeParameterProposal_type_label=Add type parameter ''{0}'' to ''{1}''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ public interface IProposalRelevance {
int ADD_SAFEVARARGS= -2;

int ADD_PARANOIDAL_PARENTHESES= -9;
int ADD_ENUM_SOURCE_NAMES_FILTER= -8;
int TOGGLE_ENUM_SOURCE_MODE= -8;

int ADD_PARENTHESES_FOR_EXPRESSION= -10;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public class TestCaseElement extends TestElement implements ITestCaseElement {

private boolean fIgnored;
private boolean fIsDynamicTest;
private boolean fIsParameterizedTest;
private String fParameterSourceType; // e.g., "EnumSource", "ValueSource", "MethodSource", etc.
private String fParameterEnumType; // For @EnumSource, the enum class name

public TestCaseElement(TestSuiteElement parent, String id, String testName, String displayName, boolean isDynamicTest, String[] parameterTypes, String uniqueId) {
super(parent, id, testName, displayName, parameterTypes, uniqueId);
Expand Down Expand Up @@ -86,4 +89,64 @@ public String toString() {
public boolean isDynamicTest() {
return fIsDynamicTest;
}

/**
* Returns whether this test is a parameterized test.
*
* @return <code>true</code> if this is a parameterized test, <code>false</code> otherwise
* @since 3.15
*/
public boolean isParameterizedTest() {
return fIsParameterizedTest;
}

/**
* Sets whether this test is a parameterized test.
*
* @param isParameterized <code>true</code> if this is a parameterized test
* @since 3.15
*/
public void setParameterizedTest(boolean isParameterized) {
fIsParameterizedTest= isParameterized;
}

/**
* Returns the parameter source type for parameterized tests.
*
* @return the parameter source type (e.g., "EnumSource", "ValueSource"), or <code>null</code> if not a parameterized test
* @since 3.15
*/
public String getParameterSourceType() {
return fParameterSourceType;
}

/**
* Sets the parameter source type for parameterized tests.
*
* @param sourceType the parameter source type (e.g., "EnumSource", "ValueSource")
* @since 3.15
*/
public void setParameterSourceType(String sourceType) {
fParameterSourceType= sourceType;
}

/**
* Returns the enum type for @EnumSource parameterized tests.
*
* @return the fully qualified enum class name, or <code>null</code> if not an EnumSource test
* @since 3.15
*/
public String getParameterEnumType() {
return fParameterEnumType;
}

/**
* Sets the enum type for @EnumSource parameterized tests.
*
* @param enumType the fully qualified enum class name
* @since 3.15
*/
public void setParameterEnumType(String enumType) {
fParameterEnumType= enumType;
}
}
Loading
Loading