getTests() {
- return Collections.unmodifiableCollection(testMap.values());
- }
-
- public TestResults getTest(String testName) {
- return testMap.get(testName);
- }
-
- public static class TestResults {
- private final String name;
- private final String suite;
- private final String outputLink;
- private final Status status;
-
- public TestResults(String name, String suite, String outputLink,
- Status status) {
- this.name = name;
- this.suite = suite;
- this.outputLink = outputLink;
- this.status = status;
- }
-
- public Status getStatus() {
- return status;
- }
-
- public String getSuiteName() {
- return suite;
- }
-
- public String getTestName() {
- return name;
- }
-
- public String getOutputLink() {
- return outputLink;
- }
-
- }
-
-}
diff --git a/utilities/testrunner/src/edu/cornell/mannlib/vitro/utilities/testrunner/output/summary.css b/utilities/testrunner/src/edu/cornell/mannlib/vitro/utilities/testrunner/output/summary.css
deleted file mode 100644
index 0126ac341..000000000
--- a/utilities/testrunner/src/edu/cornell/mannlib/vitro/utilities/testrunner/output/summary.css
+++ /dev/null
@@ -1,115 +0,0 @@
-/* $This file is distributed under the terms of the license in /doc/license.txt$ */
-
-/*
- Formats for the output summary from the acceptance tests.
-*/
-body {
- background: rgb(95%, 95%, 95%);
- font-family: sans-serif;
-}
-
-.heading {
- border: groove;
- background: white;
- padding: 10px 20px 8px 20px;
- margin-top: 50px;
- font-size: large;
-}
-
-table {
- border: thin double gray;
- background: white;
-}
-
-td,th {
- padding: 4px 12px 2px 12px;
-}
-
-th {
- border-bottom: 1px solid black;
-}
-
-table.summary {
- border: none;
- background: inherit;
-}
-
-table.summary td {
- padding-right: 30;
- border: none;
- vertical-align: top;
-}
-
-table.tallys td {
- align: right;
-}
-
-table.tallys td.total {
- font.weight: bold;
-}
-
-.section {
- background: rgb(70%, 85%, 85%);
- font-size: larger;
- margin: 50px 0px 15px 0px;
- padding: 4px 12px 2px 12px;
-}
-
-.good {
- background: rgb(60%, 100%, 60%);
-}
-
-.bad {
- background: rgb(100%, 60%, 60%);
-}
-
-.fair {
- background: rgb(100%, 100%, 60%);
-}
-
-.pending {
- background: rgb(90%, 90%, 100%);
-}
-
-.one-word {
- width: 20%;
- text-align: center;
- margin: 15px 0px 0px 0px;
- border: 1px solid black;
-}
-
-table.condensed td {
- border: 1px solid grey;
- padding: 10px 5px 10px 5px;
-}
-
-table.condensed div.suite {
- font-size: 85%;
- font-weight: bold;
- padding: 3px 3px 3px 3px;
-}
-
-table.condensed div.reason {
- font-size: 70%;
- font-style: italic;
- padding: 3px 3px 3px 30px;
-}
-
-table.condensed div.test {
- font-size: 70%;
- padding: 3px 3px 3px 15px;
-}
-
-table.condensed div.test div.tReason{
- font-style: italic;
- padding: 3px 3px 3px 10px;
-}
-
-table.ignored td {
- font-size: 80%;
-}
-
-pre.log {
- font-family: monospace;
- font-size: 80%;
-}
diff --git a/utilities/testrunner/src/edu/cornell/mannlib/vitro/utilities/testrunner/test-user-model.owl b/utilities/testrunner/src/edu/cornell/mannlib/vitro/utilities/testrunner/test-user-model.owl
deleted file mode 100644
index a84b13707..000000000
--- a/utilities/testrunner/src/edu/cornell/mannlib/vitro/utilities/testrunner/test-user-model.owl
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- testAdmin@cornell.edu
- testAdmin
- Test
- Admin
- DC647EB65E6711E155375218212B3964
- ACTIVE
- 1
- 0
-
-
-
-
- johnCurator@cornell.edu
- johnCurator
- John
- Curator
- DC647EB65E6711E155375218212B3964
- ACTIVE
- 1
- 0
-
-
-
-
- sallyEditor@cornell.edu
- sallyEditor
- Sally
- Editor
- DC647EB65E6711E155375218212B3964
- ACTIVE
- 1
- 0
-
-
-
-
- joeUser@cornell.edu
- joeUser
- Joe
- User
- DC647EB65E6711E155375218212B3964
- ACTIVE
- 1
- 0
-
-
-
-
diff --git a/utilities/testrunner/test/edu/cornell/mannlib/vitro/utilities/testrunner/IgnoredTestsTest.java b/utilities/testrunner/test/edu/cornell/mannlib/vitro/utilities/testrunner/IgnoredTestsTest.java
deleted file mode 100644
index a5554cbbf..000000000
--- a/utilities/testrunner/test/edu/cornell/mannlib/vitro/utilities/testrunner/IgnoredTestsTest.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/* $This file is distributed under the terms of the license in /doc/license.txt$ */
-
-package edu.cornell.mannlib.vitro.utilities.testrunner;
-
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertFalse;
-import static junit.framework.Assert.assertTrue;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.Writer;
-import java.util.HashSet;
-import java.util.Set;
-
-import org.junit.AfterClass;
-import org.junit.Before;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-import edu.cornell.mannlib.vitro.utilities.testrunner.IgnoredTests.IgnoredTestInfo;
-
-/**
- * Check that the ignored_tests.txt file is being parsed correctly.
- */
-public class IgnoredTestsTest {
- private static final String TEST_WITH_REASON = "test with reason";
- private static final String TEST_NO_REASON = "test with no reason";
- private static final String TEST_NOT_IGNORED = "test not ignored";
- private static final String TEST_FROM_IGNORED_SUITE = "test from ignored suite";
- private static final String SUITE_WITH_TESTS = "suite with tests";
- private static final String SUITE_WITH_REASON = "entire suite with reason";
- private static final String SUITE_NO_REASON = "entire suite with no reason";
- private static final String SUITE_NOT_IGNORED = "entire suite not ignored";
- private static final String REASON_FOR_TEST = "the reason for the test";
- private static final String REASON_FOR_SUITE = "the reason for the suite";
- private static final String NO_REASON = "";
-
- private static final String FILE_CONTENTS = "# This line is a comment \n"
- + "! This line is also, and so is the blank one\n"
- + "\n"
- + (SUITE_WITH_TESTS + ", " + TEST_NO_REASON + "\n")
- + (SUITE_WITH_TESTS + ", " + TEST_WITH_REASON + " # "
- + REASON_FOR_TEST + "\n") + (SUITE_NO_REASON + ", *\n")
- + (SUITE_WITH_REASON + ", * # " + REASON_FOR_SUITE + "\n");
-
- private static final String BAD_CONTENTS = "suite but no test # doesn't match.";
-
- /*
- * Ignore any blank line, or any line starting with '#' or '!' Each
- * other line describes an ignored test. The line contains the suite name, a
- * comma (with optional space), the test name (with optional space) and
- * optionally a comment, starting with a '#'.
If the test name is an
- * asterisk '*', then the entire suite will be ignored.
- */
-
- private static File ignoreFile;
- private static File badFile;
-
- @BeforeClass
- public static void initializeTheFile() throws IOException {
- ignoreFile = File.createTempFile("IgnoredTestsTest", "");
-
- Writer writer = new FileWriter(ignoreFile);
- try {
- writer.write(FILE_CONTENTS);
- } finally {
- writer.close();
- }
- }
-
- @BeforeClass
- public static void initializeBadFile() throws IOException {
- badFile = File.createTempFile("IgnoredTestsTest", "");
-
- Writer writer = new FileWriter(badFile);
- try {
- writer.write(BAD_CONTENTS);
- } finally {
- writer.close();
- }
- }
-
- @AfterClass
- public static void cleanup() throws IOException {
- ignoreFile.delete();
- badFile.delete();
- }
-
- private IgnoredTests ignored;
-
- @Before
- public void readTheFile() {
- ignored = new IgnoredTests(ignoreFile);
- }
-
- @Test(expected = FatalException.class)
- public void readBadFile() {
- new IgnoredTests(badFile);
- }
-
- @Test
- public void getList() {
- Set expected = new HashSet();
- expected.add(new IgnoredTestInfo(SUITE_WITH_TESTS, TEST_NO_REASON,
- NO_REASON));
- expected.add(new IgnoredTestInfo(SUITE_WITH_TESTS, TEST_WITH_REASON,
- REASON_FOR_TEST));
- expected.add(new IgnoredTestInfo(SUITE_NO_REASON, "*", NO_REASON));
- expected.add(new IgnoredTestInfo(SUITE_WITH_REASON, "*",
- REASON_FOR_SUITE));
- Set actual = new HashSet(
- ignored.getList());
- assertEquals("list of tests", expected, actual);
- }
-
- @Test
- public void isIgnoredTestYes() {
- assertTrue("ignored test",
- ignored.isIgnored(SUITE_WITH_TESTS, TEST_NO_REASON));
- }
-
- @Test
- public void isIgnoredTestNo() {
- assertFalse("not ignored test",
- ignored.isIgnored(SUITE_WITH_TESTS, TEST_NOT_IGNORED));
- }
-
- @Test
- public void isIgnoredTestFromSuite() {
- assertTrue("test from ignored suite",
- ignored.isIgnored(SUITE_WITH_REASON, TEST_FROM_IGNORED_SUITE));
- }
-
- @Test
- public void getReasonTestYes() {
- assertEquals(
- "test with reason",
- REASON_FOR_TEST,
- ignored.getReasonForIgnoring(SUITE_WITH_TESTS, TEST_WITH_REASON));
- }
-
- @Test
- public void getReasonTestNo() {
- assertEquals(
- "test not ignored",
- NO_REASON,
- ignored.getReasonForIgnoring(SUITE_WITH_TESTS, TEST_NOT_IGNORED));
- }
-
- @Test
- public void getReasonTestNoReason() {
- assertEquals("test with no reason", NO_REASON,
- ignored.getReasonForIgnoring(SUITE_WITH_TESTS, TEST_NO_REASON));
- }
-
- @Test
- public void getReasonTestFromSuite() {
- assertEquals("test from ignored suite", REASON_FOR_SUITE,
- ignored.getReasonForIgnoring(SUITE_WITH_REASON,
- TEST_FROM_IGNORED_SUITE));
- }
-
- @Test
- public void isIgnoredSuiteYes() {
- assertTrue("ignored suite", ignored.isIgnored(SUITE_WITH_REASON));
- }
-
- @Test
- public void isIgnoredSuiteNo() {
- assertFalse("not ignored suite", ignored.isIgnored(SUITE_NOT_IGNORED));
- }
-
- @Test
- public void getReasonSuiteYes() {
- assertEquals("suite with reason", REASON_FOR_SUITE,
- ignored.getReasonForIgnoring(SUITE_WITH_REASON));
- }
-
- @Test
- public void getReasonSuiteNo() {
- assertEquals("suite not ignored", NO_REASON,
- ignored.getReasonForIgnoring(SUITE_NOT_IGNORED));
- }
-
- @Test
- public void getReasonSuiteNoReason() {
- assertEquals("suite with no reason", NO_REASON,
- ignored.getReasonForIgnoring(SUITE_NO_REASON));
- }
-}