Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
xuxueli committed Jun 29, 2024
1 parent 8dc1e30 commit 970806d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions xxl-sso-server/src/test/java/ApplicationTests.java
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.junit4.SpringRunner;

/**
* @author xuxueli 2017-08-01 21:32:05
*/
@RunWith(SpringRunner.class)
@SpringBootTest
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class ApplicationTests {

@Autowired
ApplicationContext ctx;

@Test
public void testContextLoads() throws Exception {
Assert.assertNotNull(this.ctx);
Assert.assertTrue(this.ctx.containsBean("application"));
Assertions.assertNotNull(this.ctx);
Assertions.assertTrue(this.ctx.containsBean("application"));
}

}

0 comments on commit 970806d

Please sign in to comment.