@@ -74,6 +74,8 @@ infix fun <T : Path> Expect<T>.endsNotWith(expected: Path): Expect<T> =
74
74
*
75
75
* @return an [Expect] for the subject of `this` expectation.
76
76
*
77
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.toExist
78
+ *
77
79
* @since 0.12.0
78
80
*/
79
81
infix fun <T : Path > Expect<T>.toBe (@Suppress(" UNUSED_PARAMETER" ) existing : existing): Expect <T > =
@@ -89,6 +91,8 @@ infix fun <T : Path> Expect<T>.toBe(@Suppress("UNUSED_PARAMETER") existing: exis
89
91
*
90
92
* @return an [Expect] for the subject of `this` expectation.
91
93
*
94
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.notToExist
95
+ *
92
96
* @since 0.12.0
93
97
*/
94
98
infix fun <T : Path > Expect<T>.notToBe (@Suppress(" UNUSED_PARAMETER" ) existing : existing): Expect <T > =
@@ -102,6 +106,8 @@ infix fun <T : Path> Expect<T>.notToBe(@Suppress("UNUSED_PARAMETER") existing: e
102
106
*
103
107
* @return The newly created [Expect] for the extracted feature.
104
108
*
109
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.extensionFeature
110
+ *
105
111
* @since 0.12.0
106
112
*/
107
113
val <T : Path > Expect <T >.extension: Expect <String >
@@ -116,6 +122,8 @@ val <T : Path> Expect<T>.extension: Expect<String>
116
122
*
117
123
* @return an [Expect] for the subject of `this` expectation.
118
124
*
125
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.extension
126
+ *
119
127
* @since 0.12.0
120
128
*/
121
129
infix fun <T : Path > Expect<T>.extension (assertionCreator : Expect <String >.() -> Unit ): Expect <T > =
@@ -129,6 +137,8 @@ infix fun <T : Path> Expect<T>.extension(assertionCreator: Expect<String>.() ->
129
137
*
130
138
* @return The newly created [Expect] for the extracted feature.
131
139
*
140
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.fileNameFeature
141
+ *
132
142
* @since 0.12.0
133
143
*/
134
144
val <T : Path > Expect <T >.fileName: Expect <String >
@@ -143,6 +153,8 @@ val <T : Path> Expect<T>.fileName: Expect<String>
143
153
*
144
154
* @return an [Expect] for the subject of `this` expectation.
145
155
*
156
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.fileName
157
+ *
146
158
* @since 0.12.0
147
159
*/
148
160
infix fun <T : Path > Expect<T>.fileName (assertionCreator : Expect <String >.() -> Unit ): Expect <T > =
@@ -156,6 +168,8 @@ infix fun <T : Path> Expect<T>.fileName(assertionCreator: Expect<String>.() -> U
156
168
*
157
169
* @return The newly created [Expect] for the extracted feature.
158
170
*
171
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.fileNameWithoutExtension
172
+ *
159
173
* @since 0.12.0
160
174
*/
161
175
val <T : Path > Expect <T >.fileNameWithoutExtension: Expect <String >
@@ -182,6 +196,8 @@ infix fun <T : Path> Expect<T>.fileNameWithoutExtension(assertionCreator: Expect
182
196
*
183
197
* @return The newly created [Expect] for the extracted feature.
184
198
*
199
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.parentFeature
200
+ *
185
201
* @since 0.12.0
186
202
*/
187
203
val <T : Path > Expect <T >.parent: Expect <Path >
@@ -194,6 +210,8 @@ val <T : Path> Expect<T>.parent: Expect<Path>
194
210
*
195
211
* @return an [Expect] for the subject of `this` expectation.
196
212
*
213
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.parent
214
+ *
197
215
* @since 0.12.0
198
216
*/
199
217
infix fun <T : Path > Expect<T>.parent (assertionCreator : Expect <Path >.() -> Unit ): Expect <T > =
@@ -206,6 +224,8 @@ infix fun <T : Path> Expect<T>.parent(assertionCreator: Expect<Path>.() -> Unit)
206
224
*
207
225
* @return The newly created [Expect] for the extracted feature.
208
226
*
227
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.resolveFeature
228
+ *
209
229
* @since 0.12.0
210
230
*/
211
231
infix fun <T : Path > Expect<T>.resolve (other : String ): Expect <Path > =
@@ -221,6 +241,8 @@ infix fun <T : Path> Expect<T>.resolve(other: String): Expect<Path> =
221
241
*
222
242
* @return The newly created [Expect] for the extracted feature.
223
243
*
244
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.resolve
245
+ *
224
246
* @since 0.12.0
225
247
*/
226
248
infix fun <T : Path > Expect<T>.resolve (path : PathWithCreator <Path >): Expect <T > =
@@ -249,6 +271,8 @@ fun <E> path(path: String, assertionCreator: Expect<E>.() -> Unit): PathWithCrea
249
271
*
250
272
* @return an [Expect] for the subject of `this` expectation.
251
273
*
274
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.toBeReadable
275
+ *
252
276
* @since 0.12.0
253
277
*/
254
278
infix fun <T : Path > Expect<T>.toBe (@Suppress(" UNUSED_PARAMETER" ) readable : readable): Expect <T > =
@@ -266,6 +290,8 @@ infix fun <T : Path> Expect<T>.toBe(@Suppress("UNUSED_PARAMETER") readable: read
266
290
*
267
291
* @return an [Expect] for the subject of `this` expectation.
268
292
*
293
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.toBeWritable
294
+ *
269
295
* @since 0.12.0
270
296
*/
271
297
infix fun <T : Path > Expect<T>.toBe (@Suppress(" UNUSED_PARAMETER" ) writable : writable): Expect <T > =
@@ -287,6 +313,8 @@ infix fun <T : Path> Expect<T>.toBe(@Suppress("UNUSED_PARAMETER") writable: writ
287
313
*
288
314
* @return an [Expect] for the subject of `this` expectation.
289
315
*
316
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.toBeExecutable
317
+ *
290
318
* @since 0.14.0
291
319
*/
292
320
infix fun <T : Path > Expect<T>.toBe (@Suppress(" UNUSED_PARAMETER" ) executable : executable): Expect <T > =
@@ -307,6 +335,8 @@ infix fun <T : Path> Expect<T>.toBe(@Suppress("UNUSED_PARAMETER") executable: ex
307
335
*
308
336
* @return an [Expect] for the subject of `this` expectation.
309
337
*
338
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.toBeARegularFile
339
+ *
310
340
* @since 0.12.0
311
341
*/
312
342
infix fun <T : Path > Expect<T>.toBe (@Suppress(" UNUSED_PARAMETER" ) aRegularFile : aRegularFile): Expect <T > =
@@ -327,6 +357,8 @@ infix fun <T : Path> Expect<T>.toBe(@Suppress("UNUSED_PARAMETER") aRegularFile:
327
357
*
328
358
* @return an [Expect] for the subject of `this` expectation.
329
359
*
360
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.toBeADirectory
361
+ *
330
362
* @since 0.12.0
331
363
*/
332
364
infix fun <T : Path > Expect<T>.toBe (@Suppress(" UNUSED_PARAMETER" ) aDirectory : aDirectory): Expect <T > =
@@ -343,7 +375,7 @@ infix fun <T : Path> Expect<T>.toBe(@Suppress("UNUSED_PARAMETER") aDirectory: aD
343
375
*
344
376
* @return an [Expect] for the subject of `this` expectation.
345
377
*
346
- * @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.PathAssertionSamples .toBeASymbolicLink
378
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples .toBeASymbolicLink
347
379
*
348
380
* @since 0.16.0
349
381
*/
@@ -357,6 +389,8 @@ infix fun <T : Path> Expect<T>.toBe(@Suppress("UNUSED_PARAMETER") aSymbolicLink:
357
389
*
358
390
* @return an [Expect] for the subject of `this` expectation.
359
391
*
392
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.toBeAbsolute
393
+ *
360
394
* @since 0.14.0
361
395
*/
362
396
infix fun <T : Path > Expect<T>.toBe (@Suppress(" UNUSED_PARAMETER" ) absolute : absolute): Expect <T > =
@@ -369,6 +403,8 @@ infix fun <T : Path> Expect<T>.toBe(@Suppress("UNUSED_PARAMETER") absolute: abso
369
403
*
370
404
* @return an [Expect] for the subject of `this` expectation.
371
405
*
406
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples.toBeRelative
407
+ *
372
408
* @since 0.14.0
373
409
*/
374
410
infix fun <T : Path > Expect<T>.toBe (@Suppress(" UNUSED_PARAMETER" ) relative : relative): Expect <T > =
@@ -446,7 +482,7 @@ fun directoryEntries(entry: String, vararg otherEntries: String) = DirectoryEntr
446
482
*
447
483
* @return an [Expect] for the subject of `this` expectation.
448
484
*
449
- * @sample ch.tutteli.atrium.api.infix.en_GB.samples.deprecated.PathAssertionSamples .toBeAnEmptyDirectory
485
+ * @sample ch.tutteli.atrium.api.infix.en_GB.samples.PathExpectationSamples .toBeAnEmptyDirectory
450
486
*
451
487
* @since 0.16.0
452
488
*/
0 commit comments