forked from testng-team/testng
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refacto: proposal implementation for testng-team#3111
- Loading branch information
Showing
68 changed files
with
419 additions
and
474 deletions.
There are no files selected for viewing
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,12 +1,8 @@ | ||
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(); | ||
/** @return - Returns parameters associated with a factory method */ | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
package org.testng; | ||
|
||
import java.util.UUID; | ||
|
||
/** | ||
* This class defines a pair of instance/class. A method with @Factory can return an array of these | ||
* objects instead of Object[] so that instances can be dynamic proxies or mock objects and still | ||
* provide enough information to TestNG to figure out what classes the annotations should be looked | ||
* up in. | ||
* | ||
* @author <a href="mailto:[email protected]">Cedric Beust</a> | ||
*/ | ||
public interface IInstanceInfo<T> { | ||
UUID getUid(); | ||
|
||
/** @return The instance on which the tests will be invoked. */ | ||
T getInstance(); | ||
|
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
5 changes: 2 additions & 3 deletions
5
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
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
Oops, something went wrong.