-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fda8744
commit bde7a76
Showing
9 changed files
with
83 additions
and
25 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
testng-core-api/src/main/java/org/testng/IFactoryMethod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.testng; | ||
|
||
import java.util.Optional; | ||
|
||
/** Represents a factory method */ | ||
public interface IFactoryMethod { | ||
|
||
/** | ||
* @return - Returns parameters associated with a factory method wrapped within a {@link Optional} | ||
*/ | ||
Optional<Object[]> getParameters(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
testng-core-api/src/main/java/org/testng/internal/IParameterInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
package org.testng.internal; | ||
|
||
import org.testng.ITestClassInstance; | ||
import org.testng.ITestNGMethod; | ||
|
||
/** | ||
* Represents the ability to retrieve the parameters associated with a factory method. | ||
* | ||
* @deprecated - This interface stands deprecated as of TestNG <code>7.11.0</code>. | ||
*/ | ||
@Deprecated | ||
public interface IParameterInfo extends ITestClassInstance {} | ||
public interface IParameterInfo extends ITestClassInstance { | ||
/** | ||
* @return - The parameters associated with the factory method as an array. | ||
* @deprecated - This method stands deprecated as of TestNG <code>7.11.0</code> Please use {@link | ||
* ITestNGMethod#getFactoryMethod()} to retrieve the parameters. | ||
*/ | ||
@Deprecated | ||
Object[] getParameters(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters