blob: 5bcd29ac6cc5526619d303b5e6fe63c9e85bd6b0 [file] [log] [blame]
// ***************************************************************************************************************************
// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file *
// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file *
// * to you 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 org.apache.juneau.server.test;
import org.apache.juneau.microservice.*;
import org.junit.*;
import org.junit.runner.*;
import org.junit.runners.*;
import org.junit.runners.Suite.*;
/**
* Runs all the testcases in this project.
* Starts a REST service running org.apache.juneau.server.test.Root on port 10001.
* Stops the REST service after running the tests.
*/
@RunWith(Suite.class)
@SuiteClasses({
AcceptCharsetTest.class,
BeanContextPropertiesTest.class,
CallbackStringsTest.class,
CharsetEncodingsTest.class,
ClientVersionTest.class,
ConfigTest.class,
ContentTest.class,
DefaultContentTypesTest.class,
ErrorConditionsTest.class,
GroupsTest.class,
GzipTest.class,
InheritanceTest.class,
JacocoDummyTest.class,
LargePojosTest.class,
MessagesTest.class,
NlsPropertyTest.class,
NlsTest.class,
NoParserInputTest.class,
OnPostCallTest.class,
OnPreCallTest.class,
OptionsWithoutNlsTest.class,
OverlappingMethodsTest.class,
ParamsTest.class,
ParsersTest.class,
PathsTest.class,
PathTest.class,
PropertiesTest.class,
RestClientTest.class,
RestUtilsTest.class,
SerializersTest.class,
StaticFilesTest.class,
TransformsTest.class,
UrisTest.class,
UrlContentTest.class,
UrlPathPatternTest.class
})
public class _TestSuite {
static Microservice microservice;
@BeforeClass
public static void setUp() {
try {
microservice = new RestMicroservice()
.setConfig("juneau-server-test.cfg", false)
.setManifestContents(
"Test-Entry: test-value"
);
microservice.start();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
@AfterClass
public static void tearDown() {
try {
microservice.stop();
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}