"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "subprojects/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/PropertiesFileAwareClasspathResourceHasherTest.groovy" between
gradle-6.8.2-src.zip and gradle-6.8.3-src.zip

About: Gradle is a build tool with a focus on build automation and support for multi-language development.

PropertiesFileAwareClasspathResourceHasherTest.groovy  (gradle-6.8.2-src):PropertiesFileAwareClasspathResourceHasherTest.groovy  (gradle-6.8.3-src)
skipping to change at line 23 skipping to change at line 23
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.gradle.api.internal.changedetection.state package org.gradle.api.internal.changedetection.state
import com.google.common.collect.ImmutableSet import com.google.common.collect.ImmutableSet
import com.google.common.collect.Maps import com.google.common.collect.Maps
import com.google.common.io.ByteStreams import com.google.common.io.ByteStreams
import org.gradle.api.internal.file.archive.ZipEntry import org.gradle.api.internal.file.archive.ZipEntry
import org.gradle.internal.hash.Hasher
import org.gradle.internal.hash.Hashing import org.gradle.internal.hash.Hashing
import org.gradle.internal.hash.HashingOutputStream import org.gradle.internal.hash.HashingOutputStream
import org.gradle.internal.snapshot.RegularFileSnapshot import org.gradle.internal.snapshot.RegularFileSnapshot
import org.junit.Rule import org.junit.Rule
import org.junit.rules.TemporaryFolder import org.junit.rules.TemporaryFolder
import spock.lang.Specification import spock.lang.Specification
import spock.lang.Unroll import spock.lang.Unroll
import java.util.function.Supplier import java.util.function.Supplier
skipping to change at line 260 skipping to change at line 261
filteredHasher.hash(properties) == delegate.hash(properties) filteredHasher.hash(properties) == delegate.hash(properties)
where: where:
context | location | property context | location | property
SnapshotContext.ZIP_ENTRY | "value" | 'someKey=a value with bad esc ape sequence \\uxxxx' SnapshotContext.ZIP_ENTRY | "value" | 'someKey=a value with bad esc ape sequence \\uxxxx'
SnapshotContext.ZIP_ENTRY | "key" | 'keyWithBadEscapeSequence\\ux xxx=some value' SnapshotContext.ZIP_ENTRY | "key" | 'keyWithBadEscapeSequence\\ux xxx=some value'
SnapshotContext.FILE_SNAPSHOT | "value" | 'someKey=a value with bad esc ape sequence \\uxxxx' SnapshotContext.FILE_SNAPSHOT | "value" | 'someKey=a value with bad esc ape sequence \\uxxxx'
SnapshotContext.FILE_SNAPSHOT | "key" | 'keyWithBadEscapeSequence\\ux xxx=some value' SnapshotContext.FILE_SNAPSHOT | "key" | 'keyWithBadEscapeSequence\\ux xxx=some value'
} }
def "delegate configuration is added to hasher"() {
def configurationHasher = Mock(Hasher)
delegate = Mock(ResourceHasher)
when:
filteredHasher.appendConfigurationToHasher(configurationHasher)
then:
1 * delegate.appendConfigurationToHasher(configurationHasher)
}
enum SnapshotContext { enum SnapshotContext {
ZIP_ENTRY, FILE_SNAPSHOT ZIP_ENTRY, FILE_SNAPSHOT
} }
def contextFor(SnapshotContext context, String path, Map<String, String> att ributes, String comments = "") { def contextFor(SnapshotContext context, String path, Map<String, String> att ributes, String comments = "") {
switch(context) { switch(context) {
case SnapshotContext.ZIP_ENTRY: case SnapshotContext.ZIP_ENTRY:
return zipEntry(path, attributes, comments) return zipEntry(path, attributes, comments)
case SnapshotContext.FILE_SNAPSHOT: case SnapshotContext.FILE_SNAPSHOT:
return fileSnapshot(path, attributes, comments) return fileSnapshot(path, attributes, comments)
 End of changes. 2 change blocks. 
0 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)