|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2022 the original author or authors. |
|
|
|
* Copyright 2002-2024 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -42,10 +42,9 @@ class ResourceFileTests { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
@SuppressWarnings("deprecation") |
|
|
|
void assertThatUsesResourceFileAssert() { |
|
|
|
void assertThatReturnsResourceFileAssert() { |
|
|
|
ResourceFile file = ResourceFile.of("path", appendable -> appendable.append("test")); |
|
|
|
ResourceFile file = ResourceFile.of("path", "test"); |
|
|
|
assertThat(file).hasContent("test"); |
|
|
|
assertThat(file.assertThat()).isInstanceOf(ResourceFileAssert.class); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|