-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
50 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...rk-springboot-starter/src/test/java/com/alipay/sofa/ark/springboot/web/ArkTomcatTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* 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 com.alipay.sofa.ark.springboot.web; | ||
|
||
import org.junit.After; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
import org.springframework.boot.web.embedded.tomcat.TomcatWebServer; | ||
|
||
import static java.lang.Thread.currentThread; | ||
import static org.junit.Assert.assertEquals; | ||
|
||
public class ArkTomcatTest { | ||
|
||
private ArkTomcatServletWebServerFactory arkTomcatServletWebServerFactory = new ArkTomcatServletWebServerFactory(); | ||
|
||
private ClassLoader currentThreadContextClassLoader; | ||
|
||
@Before | ||
public void setUp() { | ||
currentThreadContextClassLoader = currentThread().getContextClassLoader(); | ||
} | ||
|
||
@After | ||
public void tearDown() { | ||
currentThread().setContextClassLoader(currentThreadContextClassLoader); | ||
} | ||
|
||
@Test | ||
public void testGetWebServerWithEmbeddedServerServiceNull() { | ||
assertEquals(TomcatWebServer.class, arkTomcatServletWebServerFactory.getWebServer() | ||
.getClass()); | ||
} | ||
} |
132 changes: 0 additions & 132 deletions
132
...tion/ark-springboot-starter/src/test/java/com/alipay/sofa/ark/test/ArkBootRunnerTest.java
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
...tion/ark-springboot-starter/src/test/java/com/alipay/sofa/ark/test/ArkBootTestNGTest.java
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
...ark-springboot-starter/src/test/java/com/alipay/sofa/ark/test/MultiArkBootRunnerTest.java
This file was deleted.
Oops, something went wrong.
77 changes: 0 additions & 77 deletions
77
...n/ark-springboot-starter/src/test/java/com/alipay/sofa/ark/test/SpringbootRunnerTest.java
This file was deleted.
Oops, something went wrong.