@@ -11,21 +11,18 @@ import de.infix.testBalloon.framework.core.TestSuiteScope
1111 * @param data The iterable collection of test data
1212 * @param compact If true, only a single test element is created and the class name of the data parameter is used as test name
1313 * @param maxLength maximum length of test element name (not display name)
14- * @param displayNameMaxLength maximum length of test element **display name**
1514 * @param prefix an optional prefix to add to the test name
1615 * @param testConfig Optional test configuration
1716 */
1817fun <Data > TestSuiteScope.withData (
1918 data : Iterable <Data >,
2019 compact : Boolean = DataTest .compactByDefault,
2120 maxLength : Int = DataTest .defaultTestNameMaxLength!!,
22- displayNameMaxLength : Int = DataTest .defaultDisplayNameMaxLength!!,
2321 prefix : String = "",
2422 testConfig : TestConfig = TestConfig ,
2523) = ConfiguredDataTestScope <Data >(
2624 compact,
2725 maxLength,
28- displayNameMaxLength = displayNameMaxLength,
2926 prefix = prefix,
3027 this ,
3128 data.asSequence().map { it.toPrettyString() to it },
@@ -41,7 +38,6 @@ fun <Data> TestSuiteScope.withData(
4138 * @param data The iterable collection of test data
4239 * @param compact If true, only a single test element is created and the class name of the data parameter is used as test name
4340 * @param maxLength maximum length of test element name (not display name)
44- * @param displayNameMaxLength maximum length of test element **display name**
4541 * @param prefix an optional prefix to add to the test name
4642 * @param testConfig Optional test configuration
4743 */
@@ -50,13 +46,11 @@ fun <Data> TestSuiteScope.withData(
5046 data : Iterable <Data >,
5147 compact : Boolean = DataTest .compactByDefault,
5248 maxLength : Int = DataTest .defaultTestNameMaxLength!!,
53- displayNameMaxLength : Int = DataTest .defaultDisplayNameMaxLength!!,
5449 prefix : String = "",
5550 testConfig : TestConfig = TestConfig ,
5651) = ConfiguredDataTestScope <Data >(
5752 compact,
5853 maxLength,
59- displayNameMaxLength = displayNameMaxLength,
6054 prefix = prefix,
6155 this ,
6256 data.asSequence().map { nameFn(it) to it },
@@ -70,24 +64,22 @@ fun <Data> TestSuiteScope.withData(
7064 * @param data The iterable collection of test data
7165 * @param compact If true, only a single test element is created and the class name of the data parameter is used as test name
7266 * @param maxLength maximum length of test element name (not display name)
73- * @param displayNameMaxLength maximum length of test element **display name**
7467 * @param testConfig Optional test configuration
7568 * @param prefix an optional prefix to add to the test name
7669 * @param action Test suite configuration action for each data item
7770 */
71+ @Deprecated(" will be removed in 0.9.0" , ReplaceWith (" withData(data, compact, maxLength, prefix, testConfig) - {}" ))
7872fun <Data > TestSuiteScope.withDataSuites (
7973 data : Iterable <Data >,
8074 compact : Boolean = DataTest .compactByDefault,
8175 maxLength : Int = DataTest .defaultTestNameMaxLength!!,
82- displayNameMaxLength : Int = DataTest .defaultDisplayNameMaxLength!!,
8376 prefix : String = "",
8477 testConfig : TestConfig = TestConfig ,
8578 action : TestSuiteScope .(Data ) -> Unit
8679) = withDataSuitesInternal(
8780 data.map { it.toPrettyString() to it }.asSequence(),
8881 compact,
8982 maxLength,
90- displayNameMaxLength = displayNameMaxLength,
9183 prefix = prefix,
9284 testConfig,
9385 action
@@ -101,25 +93,23 @@ fun <Data> TestSuiteScope.withDataSuites(
10193 * @param data The iterable collection of test data
10294 * @param compact If true, only a single test element is created and the class name of the data parameter is used as test name
10395 * @param maxLength maximum length of test element name (not display name)
104- * @param displayNameMaxLength maximum length of test element **display name**
10596 * @param prefix an optional prefix to add to the test name
10697 * @param testConfig Optional test configuration
10798 * @param action Test suite configuration action for each data item
10899 */
100+ @Deprecated(" will be removed in 0.9.0" , ReplaceWith (" withData(nameFn, data, compact, maxLength, prefix, testConfig) - {}" ))
109101fun <Data > TestSuiteScope.withDataSuites (
110102 nameFn : (Data ) -> String ,
111103 data : Iterable <Data >,
112104 compact : Boolean = DataTest .compactByDefault,
113105 maxLength : Int = DataTest .defaultTestNameMaxLength!!,
114- displayNameMaxLength : Int = DataTest .defaultDisplayNameMaxLength!!,
115106 prefix : String = "",
116107 testConfig : TestConfig = TestConfig ,
117108 action : TestSuiteScope .(Data ) -> Unit
118109) = withDataSuitesInternal(
119110 data.map { nameFn(it) to it }.asSequence(),
120111 compact,
121112 maxLength,
122- displayNameMaxLength = displayNameMaxLength,
123113 prefix = prefix,
124114 testConfig,
125115 action
0 commit comments