-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Nordstrom/yaroslav-orel-factory-fix
Yaroslav orel factory fix
- Loading branch information
Showing
4 changed files
with
255 additions
and
139 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
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
27 changes: 27 additions & 0 deletions
27
src/test/java/com/nordstrom/automation/testng/ConstructorFactory.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,27 @@ | ||
package com.nordstrom.automation.testng; | ||
|
||
import org.testng.annotations.DataProvider; | ||
import org.testng.annotations.Factory; | ||
import org.testng.annotations.Test; | ||
|
||
@LinkedListeners({ChainedListener.class, ExecutionFlowController.class}) | ||
public class ConstructorFactory { | ||
|
||
public ConstructorFactory() { | ||
} | ||
|
||
@Factory(dataProvider = "ints") | ||
public ConstructorFactory(final int i) { | ||
// not important | ||
} | ||
|
||
@DataProvider | ||
public Object[] ints() { | ||
return new Object[]{1, 2, 3}; | ||
} | ||
|
||
@Test | ||
public void fakeTest() { | ||
// not important | ||
} | ||
} |
Oops, something went wrong.