Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for assertLinesContainedIn (0.21 sec)

  1. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/logging/comparison/ExhaustiveLinesSearcherTest.groovy

        @Subject
        def comparer = ExhaustiveLinesSearcher.useLcsDiff()
    
        // region: assertLinesContainedIn
        def "neither expected or actual lines can be empty"() {
            when:
            comparer.assertLinesContainedIn([], ["a"])
            then:
            thrown(AssertionError)
    
            when:
            comparer.assertLinesContainedIn(["a"], [])
            then:
            thrown(AssertionError)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/logging/comparison/ExhaustiveLinesSearcher.java

         *
         * @return searcher that uses a unified diff output
         */
        public static ExhaustiveLinesSearcher useLcsDiff() {
            return new ExhaustiveLinesSearcher(false);
        }
    
        public void assertLinesContainedIn(List<String> expectedLines, List<String> actualLines) throws LineSearchFailures.AbstractLineListComparisonFailure {
            assert !expectedLines.isEmpty() : "there must be expected text";
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top