Skip to content

Commit d3c6a3f

Browse files
committed
Polish gh-23
1 parent 4b8fb4e commit d3c6a3f

File tree

4 files changed

+33
-19
lines changed

4 files changed

+33
-19
lines changed

samples/helloworld/src/main/java/sample/Application.java renamed to samples/boot/minimal/src/main/java/sample/MinimalAuthorizationServerApplication.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package sample;
1817

1918
import org.springframework.boot.SpringApplication;
2019
import org.springframework.boot.autoconfigure.SpringBootApplication;
2120

2221
@SpringBootApplication
23-
public class Application {
22+
public class MinimalAuthorizationServerApplication {
2423

2524
public static void main(String[] args) {
26-
SpringApplication.run(Application.class, args);
25+
SpringApplication.run(MinimalAuthorizationServerApplication.class, args);
2726
}
2827
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright 2020 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package sample;
17+
18+
import org.junit.jupiter.api.Test;
19+
import org.springframework.boot.test.context.SpringBootTest;
20+
import org.springframework.context.ApplicationContext;
21+
22+
import static org.assertj.core.api.Assertions.assertThat;
23+
24+
@SpringBootTest
25+
public class MinimalAuthorizationServerApplicationTests {
26+
27+
@Test
28+
public void loadContext(ApplicationContext context) {
29+
assertThat(context).isNotNull();
30+
}
31+
}

samples/helloworld/src/test/java/sample/ApplicationTest.java

-16
This file was deleted.

0 commit comments

Comments
 (0)