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
a19bea6
commit 9e86697
Showing
102 changed files
with
6,014 additions
and
219 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
1,267 changes: 1,267 additions & 0 deletions
1,267
src/main/java/org/assertj/core/api/AbstractPathAssert.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
* | ||
* Copyright 2012-2014 the original author or authors. | ||
*/ | ||
package org.assertj.core.api; | ||
|
||
import java.nio.file.Path; | ||
|
||
/** | ||
* Assertion class for {@link Path}s | ||
*/ | ||
public class PathAssert extends AbstractPathAssert<PathAssert> | ||
{ | ||
/** | ||
* Constructor | ||
* | ||
* @param actual the path to test | ||
*/ | ||
protected PathAssert(Path actual) | ||
{ | ||
super(actual, PathAssert.class); | ||
} | ||
} |
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
40 changes: 40 additions & 0 deletions
40
src/main/java/org/assertj/core/error/ShouldBeCanonicalPath.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,40 @@ | ||
/** | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
* | ||
* Copyright 2012-2014 the original author or authors. | ||
*/ | ||
package org.assertj.core.error; | ||
|
||
import org.assertj.core.util.VisibleForTesting; | ||
|
||
import java.nio.file.Path; | ||
|
||
/** | ||
* Creates an error message indicating that an assertion that verifies that a | ||
* {@link Path} is canonical has failed. | ||
* | ||
*/ | ||
public class ShouldBeCanonicalPath | ||
extends BasicErrorMessageFactory | ||
{ | ||
@VisibleForTesting | ||
public static final String SHOULD_BE_CANONICAL | ||
= "%nExpecting:%n <%s>%nto be a canonical path"; | ||
|
||
public static ErrorMessageFactory shouldBeCanonicalPath(final Path actual) | ||
{ | ||
return new ShouldBeCanonicalPath(actual); | ||
} | ||
|
||
private ShouldBeCanonicalPath(final Path actual) | ||
{ | ||
super(SHOULD_BE_CANONICAL, actual); | ||
} | ||
} |
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
36 changes: 36 additions & 0 deletions
36
src/main/java/org/assertj/core/error/ShouldBeNormalized.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,36 @@ | ||
/** | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on | ||
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
* | ||
* Copyright 2012-2014 the original author or authors. | ||
*/ | ||
package org.assertj.core.error; | ||
|
||
import org.assertj.core.util.VisibleForTesting; | ||
|
||
import java.nio.file.Path; | ||
|
||
/** | ||
* Assertion error message delivered when a {@link Path} is not normalized | ||
* | ||
* @see Path#normalize() | ||
*/ | ||
public class ShouldBeNormalized extends BasicErrorMessageFactory | ||
{ | ||
@VisibleForTesting | ||
public static final String SHOULD_BE_NORMALIZED = "Expected path:%n <%s>%nto be normalized."; | ||
|
||
private ShouldBeNormalized(Path actual) { | ||
super(SHOULD_BE_NORMALIZED, actual); | ||
} | ||
|
||
public static ErrorMessageFactory shouldBeNormalized(Path actual) { | ||
return new ShouldBeNormalized(actual); | ||
} | ||
} |
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.