diff --git a/core/src/test/java/com/google/common/truth/NoJUnitTest.java b/core/src/test/java/com/google/common/truth/NoJUnitTest.java deleted file mode 100644 index 6e8b4157f..000000000 --- a/core/src/test/java/com/google/common/truth/NoJUnitTest.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2021 Google, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.common.truth; - -import static com.google.common.truth.Truth.assertThat; - -import java.util.List; - -/** Truth-using binary to be run without JUnit on the classpath to verify that it still works. */ -public final class NoJUnitTest { - public static void main(String[] args) { - try { - assertThat("a").isEqualTo("b"); - throw new Error("assertion should have failed"); - } catch (AssertionError expected) { - List facts = ((AssertionErrorWithFacts) expected).facts(); - assertThat(facts.get(0).getKey()).isEqualTo("expected"); - assertThat(facts.get(0).getValue()).isEqualTo("b"); - assertThat(facts.get(1).getKey()).isEqualTo("but was"); - assertThat(facts.get(1).getValue()).isEqualTo("a"); - } - } - - private NoJUnitTest() {} -} diff --git a/core/src/test/java/com/google/common/truth/no_junit_test.sh b/core/src/test/java/com/google/common/truth/no_junit_test.sh deleted file mode 100755 index 3a0e3f381..000000000 --- a/core/src/test/java/com/google/common/truth/no_junit_test.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -set -euE - -# Just run the provided java_binary. -"$1"