Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for expectedFiles (0.44 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/SequentialOutputMatcher.groovy

            List expectedLines = expected.readLines().findAll { !it.isEmpty() }
            assertOutputLinesMatch(expectedLines, actualLines, ignoreExtraLines, actual)
        }
    
        protected void assertOutputLinesMatch(List<String> expectedLines, List<String> actualLines, boolean ignoreExtraLines, String actual) {
            int pos = 0
            for (; pos < actualLines.size() && pos < expectedLines.size(); pos++) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl-provider-plugins/src/test/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/PrecompiledScriptPluginTest.kt

                """
    
                    package org.acme
    
                """
            ).writeScriptPluginAdapterTo(outputDir)
    
            val expectedFile =
                outputDir.resolve("org/acme/MyScriptPlugin.kt")
    
            assertThat(
                firstNonBlankLineOf(expectedFile),
                equalTo("package org.acme")
            )
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CharSourceTester.java

                  }
                });
    
        if (expectedLines.isEmpty()) {
          assertTrue(list.isEmpty());
        } else {
          assertEquals(expectedLines.subList(0, 1), list);
        }
      }
    
      private void assertExpectedString(String string) {
        assertEquals(expected, string);
      }
    
      private void assertExpectedLines(List<String> list) {
        assertEquals(expectedLines, list);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 6.8K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/AnyOrderOutputMatcher.groovy

        protected void assertOutputLinesMatch(List<String> expectedLines, List<String> actualLines, boolean ignoreExtraLines, String actual) {
            List<String> unmatchedLines = new ArrayList<String>(actualLines)
            expectedLines.removeAll('')
            unmatchedLines.removeAll('')
    
            expectedLines.each { expectedLine ->
                def matchedLine = unmatchedLines.find { actualLine ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharSinkTester.java

      private final ImmutableList<String> lines;
      private final ImmutableList<String> expectedLines;
    
      private CharSink sink;
    
      public CharSinkTester(
          CharSinkFactory factory, String string, String suiteName, String caseDesc, Method method) {
        super(factory, string, suiteName, caseDesc, method);
        this.lines = getLines(string);
        this.expectedLines = getLines(expected);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/gmm/GradleModuleMetadataResolveIntegrationTest.groovy

                    doLast {
                        assert files*.name == ["foo-1.0.jar", "${expectedFile}"]
                    }
                }
            """
    
            expect:
            succeeds("resolve")
    
            where:
            artifactDeclaration | expectedFile
            ""                  | "transitive-1.0-cls.jar"
            '"extension": "",'  | "transitive-1.0-cls"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:07:04 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/logging/comparison/PotentialMatchTest.groovy

            when:
            def pm = new PotentialMatch(expectedLines, actualLines, matchBegins)
            def expectedContextMsg = PotentialMatch.HEADER + '\n' + contextBody.join('\n')
    
            then:
            def actualContextMsg = pm.buildContext(2)
            actualContextMsg.readLines() == expectedContextMsg.readLines()
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. maven-slf4j-provider/src/test/java/org/apache/maven/slf4j/MavenSimpleLoggerTest.java

            String testClassStackTraceLinePattern = "at " + testClass.getName() + "." + testMethodName + "\\("
                    + testClass.getSimpleName() + ".java:\\d+\\)";
            List<String> expectedLines = Arrays.asList(
                    "java.lang.RuntimeException: top-level",
                    "    " + testClassStackTraceLinePattern,
                    ">> stacktrace >>",
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:59 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/GroupedNodeFixture.java

            List<String> actualLines = Arrays.asList(getOutput().split("\\R"));
            List<String> expectedLines = Arrays.asList(expectedText.split("\\R"));
            searcher.assertLinesContainedIn(expectedLines, actualLines);
            return this;
        }
    
        /**
         * Specifies different formats for reporting a failure of {@link #assertOutputContains(String)}.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/GroupedWorkOutputFixture.java

            List<String> actualLines = Arrays.asList(getOutput().split("\\R"));
            List<String> expectedLines = Arrays.asList(expectedText.split("\\R"));
            searcher.assertLinesContainedIn(expectedLines, actualLines);
            return this;
        }
    
        /**
         * Specifies different formats for reporting a failure of {@link #assertOutputContains(String)}.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top