Skip to content

Commit

Permalink
fix :
Browse files Browse the repository at this point in the history
  • Loading branch information
nonaninona committed Jan 1, 2024
1 parent 2a60b01 commit ff8dce6
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 70 deletions.
Binary file modified .gradle/8.5/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
10 changes: 3 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
plugins {
id 'java'
id 'org.springframework.boot' version '2.5.5'
id 'org.springframework.boot' version '3.2.1'
id 'io.spring.dependency-management' version '1.1.4'
}

group = 'com.kuit'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = JavaVersion.VERSION_15
sourceCompatibility = '17'
}



configurations {
compileOnly {
extendsFrom annotationProcessor
Expand All @@ -28,8 +26,6 @@ dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
runtimeOnly('mysql:mysql-connector-java:8.0.30')
runtimeOnly('com.h2database:h2')
}

tasks.named('test') {
Expand All @@ -38,4 +34,4 @@ tasks.named('test') {

jar {
enabled = false
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1>ChatdiaryApplicationTests</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.159s</div>
<div class="counter">0.452s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -79,44 +79,28 @@ <h2>Tests</h2>
</thead>
<tr>
<td class="success">contextLoads()</td>
<td class="success">0.159s</td>
<td class="success">0.452s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div id="tab1" class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>23:46:46.386 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
23:46:46.392 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
23:46:46.408 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.kuit.chatdiary.ChatdiaryApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
23:46:46.413 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.kuit.chatdiary.ChatdiaryApplicationTests], using SpringBootContextLoader
23:46:46.415 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: class path resource [com/kuit/chatdiary/ChatdiaryApplicationTests-context.xml] does not exist
23:46:46.415 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: class path resource [com/kuit/chatdiary/ChatdiaryApplicationTestsContext.groovy] does not exist
23:46:46.415 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
23:46:46.415 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: ChatdiaryApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
23:46:46.433 [Test worker] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.kuit.chatdiary.ChatdiaryApplicationTests]
23:46:46.457 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/leehyunhee/IdeaProjects/BE2/build/classes/java/main/com/kuit/chatdiary/ChatdiaryApplication.class]
23:46:46.458 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.kuit.chatdiary.ChatdiaryApplication for test class com.kuit.chatdiary.ChatdiaryApplicationTests
23:46:46.498 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.kuit.chatdiary.ChatdiaryApplicationTests]: using defaults.
23:46:46.499 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
23:46:46.504 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource]
23:46:46.504 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
23:46:46.504 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@10c626be, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2fc0cc3, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@328cf0e1, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@63b1d4fa, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@42e3ede4, org.springframework.test.context.support.DirtiesContextTestExecutionListener@201b6b6f, org.springframework.test.context.event.EventPublishingTestExecutionListener@75459c75, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@183e8023, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@45efc20d, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@3e5499cc, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@67ab1c47, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@b78a709, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@30bcf3c1]
23:46:46.506 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@53812a9b testClass = ChatdiaryApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@14b030a0 testClass = ChatdiaryApplicationTests, locations = '{}', classes = '{class com.kuit.chatdiary.ChatdiaryApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@6f19ac19, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@44d52de2, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@babafc2, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@600b9d27, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@36cda2c2, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@49e5f737], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -&gt; true]], class annotated with @DirtiesContext [false] with mode [null].
23:46:46.520 [Test worker] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}
<pre>00:12:48.298 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: ChatdiaryApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
00:12:48.351 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.kuit.chatdiary.ChatdiaryApplication for test class com.kuit.chatdiary.ChatdiaryApplicationTests

. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.5.5)
:: Spring Boot :: (v3.2.1)

2024-01-01 23:46:46.683 INFO 94903 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : Starting ChatdiaryApplicationTests using Java 17.0.8 on lees-MacBook-Pro.local with PID 94903 (started by leehyunhee in /Users/leehyunhee/IdeaProjects/BE2)
2024-01-01 23:46:46.684 INFO 94903 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : The following profiles are active: local
2024-01-01 23:46:47.287 INFO 94903 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : Started ChatdiaryApplicationTests in 0.764 seconds (JVM running for 1.269)
2024-01-02T00:12:48.569+09:00 INFO 95715 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : Starting ChatdiaryApplicationTests using Java 17.0.8 with PID 95715 (started by leehyunhee in /Users/leehyunhee/IdeaProjects/BE2)
2024-01-02T00:12:48.570+09:00 INFO 95715 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : The following 1 profile is active: &quot;local&quot;
2024-01-02T00:12:49.092+09:00 INFO 95715 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : Started ChatdiaryApplicationTests in 0.668 seconds (process running for 1.233)
</pre>
</span>
</div>
Expand All @@ -128,7 +112,7 @@ <h2>Standard output</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 8.5</a> at 2024. 1. 1. 오후 11:46:47</p>
<a href="http://www.gradle.org">Gradle 8.5</a> at 2024. 1. 2. 오전 12:12:49</p>
</div>
</div>
</body>
Expand Down
8 changes: 4 additions & 4 deletions build/reports/tests/test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>Test Summary</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.159s</div>
<div class="counter">0.452s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -85,7 +85,7 @@ <h2>Packages</h2>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.159s</td>
<td>0.452s</td>
<td class="success">100%</td>
</tr>
</tbody>
Expand All @@ -112,7 +112,7 @@ <h2>Classes</h2>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.159s</td>
<td>0.452s</td>
<td class="success">100%</td>
</tr>
</tbody>
Expand All @@ -126,7 +126,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 8.5</a> at 2024. 1. 1. 오후 11:46:47</p>
<a href="http://www.gradle.org">Gradle 8.5</a> at 2024. 1. 2. 오전 12:12:49</p>
</div>
</div>
</body>
Expand Down
6 changes: 3 additions & 3 deletions build/reports/tests/test/packages/com.kuit.chatdiary.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ <h1>Package com.kuit.chatdiary</h1>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.159s</div>
<div class="counter">0.452s</div>
<p>duration</p>
</div>
</td>
Expand Down Expand Up @@ -83,7 +83,7 @@ <h2>Classes</h2>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.159s</td>
<td>0.452s</td>
<td class="success">100%</td>
</tr>
</table>
Expand All @@ -96,7 +96,7 @@ <h2>Classes</h2>
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 8.5</a> at 2024. 1. 1. 오후 11:46:47</p>
<a href="http://www.gradle.org">Gradle 8.5</a> at 2024. 1. 2. 오전 12:12:49</p>
</div>
</div>
</body>
Expand Down
Loading

0 comments on commit ff8dce6

Please sign in to comment.