From 97fd595983c941b5d3937be736b03fe38406522f Mon Sep 17 00:00:00 2001 From: Damian Jansen Date: Mon, 16 Sep 2013 12:03:04 +1000 Subject: [PATCH] Add missing suite for Upload Tests Missed in previous merge. --- .../zanata/feature/AggregateTestSuite.java | 4 ++- .../feature/document/DocumentTestSuite.java | 35 +++++++++++++++++++ .../service/TranslationResourceRestTest.java | 4 +-- 3 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 functional-test/src/test/java/org/zanata/feature/document/DocumentTestSuite.java diff --git a/functional-test/src/test/java/org/zanata/feature/AggregateTestSuite.java b/functional-test/src/test/java/org/zanata/feature/AggregateTestSuite.java index cb7283cf17..9aa2588f52 100644 --- a/functional-test/src/test/java/org/zanata/feature/AggregateTestSuite.java +++ b/functional-test/src/test/java/org/zanata/feature/AggregateTestSuite.java @@ -24,6 +24,7 @@ import org.junit.runners.Suite; import org.zanata.feature.account.AccountTestSuite; import org.zanata.feature.administration.AdministrationTestSuite; +import org.zanata.feature.document.DocumentTestSuite; import org.zanata.feature.glossary.GlossaryTestSuite; import org.zanata.feature.security.SecurityTestSuite; import org.zanata.feature.startNewProject.CreateSampleProjectTestSuite; @@ -36,7 +37,8 @@ GlossaryTestSuite.class, SecurityTestSuite.class, CreateSampleProjectTestSuite.class, - VersionGroupTestSuite.class + VersionGroupTestSuite.class, + DocumentTestSuite.class }) public class AggregateTestSuite { } diff --git a/functional-test/src/test/java/org/zanata/feature/document/DocumentTestSuite.java b/functional-test/src/test/java/org/zanata/feature/document/DocumentTestSuite.java new file mode 100644 index 0000000000..898abcdf48 --- /dev/null +++ b/functional-test/src/test/java/org/zanata/feature/document/DocumentTestSuite.java @@ -0,0 +1,35 @@ +/* + * Copyright 2013, Red Hat, Inc. and individual contributors as indicated by the + * @author tags. See the copyright.txt file in the distribution for a full + * listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it under the + * terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 2.1 of the License, or (at your option) + * any later version. + * + * This software is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more + * details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this software; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF + * site: http://www.fsf.org. + */ +package org.zanata.feature.document; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +/** + * @author Damian Jansen djansen@redhat.com + */ +@RunWith(Suite.class) +@Suite.SuiteClasses({ + UploadTest.class +}) +public class DocumentTestSuite +{ +} diff --git a/zanata-war/src/test/java/org/zanata/rest/service/TranslationResourceRestTest.java b/zanata-war/src/test/java/org/zanata/rest/service/TranslationResourceRestTest.java index f6b48d7c04..13d84bcca1 100644 --- a/zanata-war/src/test/java/org/zanata/rest/service/TranslationResourceRestTest.java +++ b/zanata-war/src/test/java/org/zanata/rest/service/TranslationResourceRestTest.java @@ -765,7 +765,7 @@ else if( entry.getKey().equals(HeaderFields.KEY_PoRevisionDate) ) } } } - + @Test public void headersFromOriginalPush() throws Exception { @@ -820,7 +820,7 @@ else if( entry.getKey().equals(HeaderFields.KEY_PoRevisionDate) ) } } } - + @Test public void headersAfterTranslating() throws Exception {