Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 58 for restmapper (0.83 sec)

  1. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/failure/mappers/AssertjMultipleAssertionsErrorMapperTest.groovy

        def rootMapper = new ThrowableToTestFailureMapper() {
            @Override
            TestFailure createFailure(Throwable throwable) {
                TestFailure.fromTestAssertionFailure(throwable, null, null, null)
            }
        }
    
        def "maps assertion failure correctly"() {
            when:
            def mappedFailure = mapper.map(error, rootMapper)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/failure/mappers/OpenTestMultipleFailuresErrorMapper.java

        }
    
        @Override
        public TestFailure map(Throwable throwable, ThrowableToTestFailureMapper rootMapper) throws Exception {
            List<TestFailure> innerFailures = mapInnerFailures(throwable, rootMapper);
            // As there is no expected or actual value, we pass null as their value
            return TestFailure.fromTestAssertionFailure(throwable, null, null, innerFailures);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/failure/mappers/AssertErrorMapper.java

            );
        }
    
        @Override
        public TestFailure map(Throwable throwable, ThrowableToTestFailureMapper rootMapper) throws Exception {
            Throwable cause = throwable.getCause();
            List<TestFailure> causeFailure = null;
            if (cause != null) {
                causeFailure = Collections.singletonList(rootMapper.createFailure(cause));
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 25 09:04:04 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/failure/mappers/AssertjMultipleAssertionsErrorMapper.java

            );
        }
    
        @Override
        public TestFailure map(Throwable throwable, ThrowableToTestFailureMapper rootMapper) throws Exception {
            return TestFailure.fromTestAssertionFailure(throwable, null, null, mapInnerFailures(throwable, rootMapper));
        }
    
        @SuppressWarnings("unchecked")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/internal/resolve/result/DefaultBuildableModuleComponentMetaDataResolveResult.java

            return state == State.Redirect;
        }
    
        public <S> void applyTo(BuildableModuleComponentMetaDataResolveResult<S> target, Function<T, S> resultMapper) {
            if (state == State.Resolved) {
                target.resolved(resultMapper.apply(metaData));
            } else if (state == State.Failed) {
                target.failed(failure);
            } else if (state == State.Redirect) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/failure/TestFailureMapper.java

         * <p>
         * If needed, {@code rootMapper} can be used to recursively map inner failures by platform-specific means.
         *
         * @param throwable the {@link Throwable} to be mapped
         * @param rootMapper the {@link ThrowableToTestFailureMapper} to be used to recursively map inner failures.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:48:53 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/process/internal/worker/child/WorkerProcessClassPathProvider.java

                ClassWriter classWriter = new ClassWriter(0);
                ClassVisitor remappingVisitor = new ClassRemapper(classWriter, remapper);
                classReader.accept(remappingVisitor, ClassReader.EXPAND_FRAMES);
                byte[] remappedClass = classWriter.toByteArray();
                String remappedClassName = remapper.map(internalName).concat(".class");
                jar.putNextEntry(new ZipEntry(remappedClassName));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/runtimeshaded/ImplementationDependencyRelocator.java

    import org.gradle.internal.util.Trie;
    import org.objectweb.asm.commons.Remapper;
    
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.nio.charset.Charset;
    import java.util.Arrays;
    import java.util.List;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    
    class ImplementationDependencyRelocator extends Remapper {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/failure/mappers/JUnitComparisonTestFailureMapper.java

                "junit.framework.ComparisonFailure",
                "org.junit.ComparisonFailure"
            );
        }
    
        @Override
        public TestFailure map(Throwable throwable, ThrowableToTestFailureMapper rootMapper) throws Exception {
            String expectedValue = invokeMethod(throwable, "getExpected", String.class);
            String actualValue = invokeMethod(throwable, "getActual", String.class);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/AnalyzeAndShade.kt

    import org.objectweb.asm.ClassReader
    import org.objectweb.asm.ClassWriter
    import org.objectweb.asm.commons.ClassRemapper
    import org.objectweb.asm.commons.Remapper
    import java.io.BufferedInputStream
    import java.io.File
    import java.io.FileInputStream
    import java.io.IOException
    import java.net.URI
    import java.nio.file.FileSystems
    import java.nio.file.FileVisitResult
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top