스프링 부트와 AWS로 혼자 구현하는 웹 서비스 Chapter9 수정

This commit is contained in:
DESKTOP-FSO9NHB\User
2020-12-05 16:30:40 +09:00
parent 036d9b84c4
commit 2fcd197e3e
24 changed files with 12 additions and 1205 deletions

View File

@@ -7,4 +7,5 @@
- [Chapter5. 스프링 시큐리티와 OAuth 2.0으로 로그인 기능 구현하기](https://github.com/banjjoknim/TIL/blob/master/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter5.md)
- [Chapter6. AWS 서버 환경을 만들어보자 - AWS EC2](https://github.com/banjjoknim/TIL/blob/master/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter6.md)
- [Chapter7. AWS에 데이터베이스 환경을 만들어보자 - AWS RDS](https://github.com/banjjoknim/TIL/blob/master/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter7.md)
- [Chapter8. EC2 서버에 프로젝트를 배포해 보자](https://github.com/banjjoknim/TIL/blob/master/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter8.md)
- [Chapter8. EC2 서버에 프로젝트를 배포해 보자](https://github.com/banjjoknim/TIL/blob/master/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter8.md)
- [Chapter9. 코드가 푸시되면 자동으로 배포해 보자 - Travis CI 배포 자동화](https://github.com/banjjoknim/TIL/blob/master/WebServiceBySpringBootAndAWS/src/ChapterDescription/Chapter9.md)

View File

@@ -1,178 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - Class com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>Class com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/com.banjjoknim.book.springboot.domain.posts.html">com.banjjoknim.book.springboot.domain.posts</a> &gt; PostsRepositoryTest</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">2</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.269s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Tests</a>
</li>
<li>
<a href="#tab1">Standard output</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Tests</h2>
<table>
<thead>
<tr>
<th>Test</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tr>
<td class="success">BaseTimeEntity_등록</td>
<td class="success">0.018s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">게시글저장_불러오기</td>
<td class="success">0.251s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div id="tab1" class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>15:35:08.843 [Test worker] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:08.843 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
15:35:08.859 [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)]
15:35:08.874 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
15:35:08.890 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest], using SpringBootContextLoader
15:35:08.890 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: class path resource [com/banjjoknim/book/springboot/domain/posts/PostsRepositoryTest-context.xml] does not exist
15:35:08.890 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: class path resource [com/banjjoknim/book/springboot/domain/posts/PostsRepositoryTestContext.groovy] does not exist
15:35:08.890 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: no resource found for suffixes {-context.xml, Context.groovy}.
15:35:08.890 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: PostsRepositoryTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
15:35:08.937 [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.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.015 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [C:\Users\User\IdeaProjects\TIL(Today-I-Learned)\WebServiceBySpringBootAndAWS\build\classes\java\main\com\banjjoknim\book\springboot\Application.class]
15:35:09.015 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.banjjoknim.book.springboot.Application for test class com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest
15:35:09.124 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: using defaults.
15:35:09.124 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener, org.springframework.security.test.context.support.ReactorContextTestExecutionListener, 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.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.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
15:35:09.140 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2bbfc0c4, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@d472061, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@1203784b, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@cadd549, org.springframework.test.context.support.DirtiesContextTestExecutionListener@59418df8, org.springframework.test.context.transaction.TransactionalTestExecutionListener@6d31ea99, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@64f90654, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@69c901f, org.springframework.security.test.context.support.ReactorContextTestExecutionListener@53e7f379, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@3160bebe, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@1d07c560, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7ff9b2b7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@13e9ea0a, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@27c82387]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@21e49c60 testClass = PostsRepositoryTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@11a13124 testClass = PostsRepositoryTest, locations = '{}', classes = '{class com.banjjoknim.book.springboot.Application}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@56a49bff, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@5ad4f966, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@f844f52, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@61dbede6], 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].
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.171 [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, server.port=-1}
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.7.RELEASE)
2020-12-02 15:35:09.437 INFO 13132 --- [ Test worker] c.b.b.s.d.posts.PostsRepositoryTest : Starting PostsRepositoryTest on DESKTOP-FSO9NHB with PID 13132 (started by User in C:\Users\User\IdeaProjects\TIL(Today-I-Learned)\WebServiceBySpringBootAndAWS)
2020-12-02 15:35:09.437 INFO 13132 --- [ Test worker] c.b.b.s.d.posts.PostsRepositoryTest : No active profile set, falling back to default profiles: default
2020-12-02 15:35:10.202 INFO 13132 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2020-12-02 15:35:10.265 INFO 13132 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 63ms. Found 2 repository interfaces.
2020-12-02 15:35:10.671 INFO 13132 --- [ Test worker] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$9b5422d2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-12-02 15:35:10.843 INFO 13132 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2020-12-02 15:35:11.030 INFO 13132 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2020-12-02 15:35:11.124 INFO 13132 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2020-12-02 15:35:11.233 INFO 13132 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate Core {5.3.10.Final}
2020-12-02 15:35:11.233 INFO 13132 --- [ Test worker] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2020-12-02 15:35:11.421 INFO 13132 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
2020-12-02 15:35:11.577 INFO 13132 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
Hibernate: drop table if exists posts
Hibernate: drop table if exists user
Hibernate: create table posts (id bigint not null auto_increment, created_date datetime, modified_date datetime, author varchar(255), content TEXT not null, title varchar(500) not null, primary key (id)) engine=InnoDB
Hibernate: create table user (id bigint not null auto_increment, created_date datetime, modified_date datetime, email varchar(255) not null, name varchar(255) not null, picture varchar(255), role varchar(255) not null, primary key (id)) engine=InnoDB
2020-12-02 15:35:12.264 INFO 13132 --- [ Test worker] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@75bc8cf5'
2020-12-02 15:35:12.264 INFO 13132 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-12-02 15:35:12.762 INFO 13132 --- [ Test worker] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2020-12-02 15:35:13.168 INFO 13132 --- [ Test worker] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@55de361f, org.springframework.security.web.context.SecurityContextPersistenceFilter@4ae4d4db, org.springframework.security.web.header.HeaderWriterFilter@549c39b, org.springframework.security.web.authentication.logout.LogoutFilter@9f384cb, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter@183d75e5, org.springframework.security.oauth2.client.web.OAuth2LoginAuthenticationFilter@7cef32a7, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@3e6cf7c2, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@7934c071, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@1e9ff1bf, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@685bd49, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@480fba81, org.springframework.security.web.session.SessionManagementFilter@c9cd571, org.springframework.security.web.access.ExceptionTranslationFilter@4992fe6f, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@55b06158]
2020-12-02 15:35:13.621 INFO 13132 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-12-02 15:35:13.684 WARN 13132 --- [ Test worker] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2020-12-02 15:35:13.715 INFO 13132 --- [ Test worker] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
2020-12-02 15:35:14.121 INFO 13132 --- [ Test worker] s.a.ScheduledAnnotationBeanPostProcessor : No TaskScheduler/ScheduledExecutorService bean found for scheduled processing
2020-12-02 15:35:14.137 INFO 13132 --- [ Test worker] c.b.b.s.d.posts.PostsRepositoryTest : Started PostsRepositoryTest in 4.95 seconds (JVM running for 5.974)
Hibernate: insert into posts (created_date, modified_date, author, content, title) values (?, ?, ?, ?, ?)
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: delete from posts where id=?
Hibernate: insert into posts (created_date, modified_date, author, content, title) values (?, ?, ?, ?, ?)
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt; createDate=2020-12-02T15:35:14.402599, modifiedDate=2020-12-02T15:35:14.402599
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: delete from posts where id=?
</pre>
</span>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.5</a> at 2020. 12. 2. 오후 3:35:17</p>
</div>
</div>
</body>
</html>

View File

@@ -1,154 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - Class com.banjjoknim.book.springboot.web.IndexControllerTest</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>Class com.banjjoknim.book.springboot.web.IndexControllerTest</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/com.banjjoknim.book.springboot.web.html">com.banjjoknim.book.springboot.web</a> &gt; IndexControllerTest</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">1</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.143s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Tests</a>
</li>
<li>
<a href="#tab1">Standard output</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Tests</h2>
<table>
<thead>
<tr>
<th>Test</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tr>
<td class="success">메인페이지_로딩</td>
<td class="success">0.143s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div id="tab1" class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.banjjoknim.book.springboot.web.IndexControllerTest], using SpringBootContextLoader
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.banjjoknim.book.springboot.web.IndexControllerTest]: no resource found for suffixes {-context.xml, Context.groovy}.
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.banjjoknim.book.springboot.web.IndexControllerTest]: IndexControllerTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.banjjoknim.book.springboot.Application for test class com.banjjoknim.book.springboot.web.IndexControllerTest
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener, org.springframework.security.test.context.support.ReactorContextTestExecutionListener, 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.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.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@62a4c0c, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4a17dcff, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@761406b2, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@4320a5e1, org.springframework.test.context.support.DirtiesContextTestExecutionListener@17bedba5, org.springframework.test.context.transaction.TransactionalTestExecutionListener@63ba0d89, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@354da6da, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@7384023f, org.springframework.security.test.context.support.ReactorContextTestExecutionListener@12068c19, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@21e31d95, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@79c01405, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@2a8674f8, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@cc643f5, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@35f0e84d]
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.7.RELEASE)
2020-12-02 15:35:15.277 INFO 13132 --- [ Test worker] c.b.b.s.web.IndexControllerTest : Starting IndexControllerTest on DESKTOP-FSO9NHB with PID 13132 (started by User in C:\Users\User\IdeaProjects\TIL(Today-I-Learned)\WebServiceBySpringBootAndAWS)
2020-12-02 15:35:15.277 INFO 13132 --- [ Test worker] c.b.b.s.web.IndexControllerTest : No active profile set, falling back to default profiles: default
2020-12-02 15:35:15.449 INFO 13132 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2020-12-02 15:35:15.464 INFO 13132 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 15ms. Found 2 repository interfaces.
2020-12-02 15:35:15.542 INFO 13132 --- [ Test worker] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$9b5422d2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-12-02 15:35:15.746 INFO 13132 --- [ Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 0 (http)
2020-12-02 15:35:15.777 INFO 13132 --- [ Test worker] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-12-02 15:35:15.777 INFO 13132 --- [ Test worker] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.22]
2020-12-02 15:35:15.917 INFO 13132 --- [ Test worker] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-12-02 15:35:15.917 INFO 13132 --- [ Test worker] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 640 ms
2020-12-02 15:35:16.058 INFO 13132 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Starting...
2020-12-02 15:35:16.058 INFO 13132 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Start completed.
2020-12-02 15:35:16.089 INFO 13132 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2020-12-02 15:35:16.105 INFO 13132 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
Hibernate: drop table if exists posts
Hibernate: drop table if exists user
Hibernate: create table posts (id bigint not null auto_increment, created_date datetime, modified_date datetime, author varchar(255), content TEXT not null, title varchar(500) not null, primary key (id)) engine=InnoDB
Hibernate: create table user (id bigint not null auto_increment, created_date datetime, modified_date datetime, email varchar(255) not null, name varchar(255) not null, picture varchar(255), role varchar(255) not null, primary key (id)) engine=InnoDB
2020-12-02 15:35:16.136 INFO 13132 --- [ Test worker] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@75bc8cf5'
2020-12-02 15:35:16.136 INFO 13132 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-12-02 15:35:16.402 INFO 13132 --- [ Test worker] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2020-12-02 15:35:16.511 INFO 13132 --- [ Test worker] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@4eafc850, org.springframework.security.web.context.SecurityContextPersistenceFilter@7e9bc647, org.springframework.security.web.header.HeaderWriterFilter@1b4443db, org.springframework.security.web.authentication.logout.LogoutFilter@50ab7e5a, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter@3942deec, org.springframework.security.oauth2.client.web.OAuth2LoginAuthenticationFilter@163ef381, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@70a237f7, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@434ac8c5, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@47891623, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7e6acf92, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6c50cbfe, org.springframework.security.web.session.SessionManagementFilter@7d8e7919, org.springframework.security.web.access.ExceptionTranslationFilter@52cd6cc3, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@2a1f931]
2020-12-02 15:35:16.636 INFO 13132 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-12-02 15:35:16.652 WARN 13132 --- [ Test worker] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2020-12-02 15:35:16.667 INFO 13132 --- [ Test worker] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
2020-12-02 15:35:16.855 INFO 13132 --- [ Test worker] s.a.ScheduledAnnotationBeanPostProcessor : No TaskScheduler/ScheduledExecutorService bean found for scheduled processing
2020-12-02 15:35:16.886 INFO 13132 --- [ Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 5227 (http) with context path ''
2020-12-02 15:35:16.886 INFO 13132 --- [ Test worker] c.b.b.s.web.IndexControllerTest : Started IndexControllerTest in 1.64 seconds (JVM running for 8.723)
2020-12-02 15:35:16.948 INFO 13132 --- [o-auto-1-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-12-02 15:35:16.948 INFO 13132 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2020-12-02 15:35:16.964 INFO 13132 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 16 ms
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_ order by posts0_.id DESC
</pre>
</span>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.5</a> at 2020. 12. 2. 오후 3:35:17</p>
</div>
</div>
</body>
</html>

View File

@@ -1,132 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - Class com.banjjoknim.book.springboot.web.PostsApiControllerTest</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>Class com.banjjoknim.book.springboot.web.PostsApiControllerTest</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/com.banjjoknim.book.springboot.web.html">com.banjjoknim.book.springboot.web</a> &gt; PostsApiControllerTest</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">2</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.082s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Tests</a>
</li>
<li>
<a href="#tab1">Standard output</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Tests</h2>
<table>
<thead>
<tr>
<th>Test</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tr>
<td class="success">Posts_등록된다</td>
<td class="success">0.057s</td>
<td class="success">passed</td>
</tr>
<tr>
<td class="success">Posts_수정된다</td>
<td class="success">0.025s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
<div id="tab1" class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.banjjoknim.book.springboot.web.PostsApiControllerTest], using SpringBootContextLoader
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.banjjoknim.book.springboot.web.PostsApiControllerTest]: no resource found for suffixes {-context.xml, Context.groovy}.
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.banjjoknim.book.springboot.web.PostsApiControllerTest]: PostsApiControllerTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.banjjoknim.book.springboot.Application for test class com.banjjoknim.book.springboot.web.PostsApiControllerTest
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener, org.springframework.security.test.context.support.ReactorContextTestExecutionListener, 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.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.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@63efdaba, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@361baf94, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@df5e602, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6f1eab5b, org.springframework.test.context.support.DirtiesContextTestExecutionListener@72b98608, org.springframework.test.context.transaction.TransactionalTestExecutionListener@19b5e0c4, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3b52d006, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@210ce044, org.springframework.security.test.context.support.ReactorContextTestExecutionListener@1f3babab, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@293ecb48, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@441fc89, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@42092285, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@2daf9c, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@5f96505a]
2020-12-02 15:35:17.042 INFO 13132 --- [ Test worker] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring TestDispatcherServlet ''
2020-12-02 15:35:17.042 INFO 13132 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
2020-12-02 15:35:17.042 INFO 13132 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms
Hibernate: insert into posts (created_date, modified_date, author, content, title) values (?, ?, ?, ?, ?)
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: delete from posts where id=?
2020-12-02 15:35:17.105 INFO 13132 --- [ Test worker] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring TestDispatcherServlet ''
2020-12-02 15:35:17.105 INFO 13132 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
2020-12-02 15:35:17.105 INFO 13132 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms
Hibernate: insert into posts (created_date, modified_date, author, content, title) values (?, ?, ?, ?, ?)
Hibernate: select posts0_.id as id1_0_0_, posts0_.created_date as created_2_0_0_, posts0_.modified_date as modified3_0_0_, posts0_.author as author4_0_0_, posts0_.content as content5_0_0_, posts0_.title as title6_0_0_ from posts posts0_ where posts0_.id=?
Hibernate: update posts set created_date=?, modified_date=?, author=?, content=?, title=? where id=?
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: delete from posts where id=?
</pre>
</span>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.5</a> at 2020. 12. 2. 오후 3:35:17</p>
</div>
</div>
</body>
</html>

View File

@@ -1,96 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - Class com.banjjoknim.book.springboot.web.dto.HelloResponseDtoTest</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>Class com.banjjoknim.book.springboot.web.dto.HelloResponseDtoTest</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt;
<a href="../packages/com.banjjoknim.book.springboot.web.dto.html">com.banjjoknim.book.springboot.web.dto</a> &gt; HelloResponseDtoTest</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">1</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.002s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Tests</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Tests</h2>
<table>
<thead>
<tr>
<th>Test</th>
<th>Duration</th>
<th>Result</th>
</tr>
</thead>
<tr>
<td class="success">롬복_기능_테스트</td>
<td class="success">0.002s</td>
<td class="success">passed</td>
</tr>
</table>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.5</a> at 2020. 12. 2. 오후 3:35:17</p>
</div>
</div>
</body>
</html>

View File

@@ -1,103 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - Package com.banjjoknim.book.springboot.domain.posts</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>Package com.banjjoknim.book.springboot.domain.posts</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt; com.banjjoknim.book.springboot.domain.posts</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">2</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.269s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Classes</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Classes</h2>
<table>
<thread>
<tr>
<th>Class</th>
<th>Tests</th>
<th>Failures</th>
<th>Ignored</th>
<th>Duration</th>
<th>Success rate</th>
</tr>
</thread>
<tr>
<td class="success">
<a href="../classes/com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest.html">PostsRepositoryTest</a>
</td>
<td>2</td>
<td>0</td>
<td>0</td>
<td>0.269s</td>
<td class="success">100%</td>
</tr>
</table>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.5</a> at 2020. 12. 2. 오후 3:35:17</p>
</div>
</div>
</body>
</html>

View File

@@ -1,103 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=edge"/>
<title>Test results - Package com.banjjoknim.book.springboot.web.dto</title>
<link href="../css/base-style.css" rel="stylesheet" type="text/css"/>
<link href="../css/style.css" rel="stylesheet" type="text/css"/>
<script src="../js/report.js" type="text/javascript"></script>
</head>
<body>
<div id="content">
<h1>Package com.banjjoknim.book.springboot.web.dto</h1>
<div class="breadcrumbs">
<a href="../index.html">all</a> &gt; com.banjjoknim.book.springboot.web.dto</div>
<div id="summary">
<table>
<tr>
<td>
<div class="summaryGroup">
<table>
<tr>
<td>
<div class="infoBox" id="tests">
<div class="counter">1</div>
<p>tests</p>
</div>
</td>
<td>
<div class="infoBox" id="failures">
<div class="counter">0</div>
<p>failures</p>
</div>
</td>
<td>
<div class="infoBox" id="ignored">
<div class="counter">0</div>
<p>ignored</p>
</div>
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.002s</div>
<p>duration</p>
</div>
</td>
</tr>
</table>
</div>
</td>
<td>
<div class="infoBox success" id="successRate">
<div class="percent">100%</div>
<p>successful</p>
</div>
</td>
</tr>
</table>
</div>
<div id="tabs">
<ul class="tabLinks">
<li>
<a href="#tab0">Classes</a>
</li>
</ul>
<div id="tab0" class="tab">
<h2>Classes</h2>
<table>
<thread>
<tr>
<th>Class</th>
<th>Tests</th>
<th>Failures</th>
<th>Ignored</th>
<th>Duration</th>
<th>Success rate</th>
</tr>
</thread>
<tr>
<td class="success">
<a href="../classes/com.banjjoknim.book.springboot.web.dto.HelloResponseDtoTest.html">HelloResponseDtoTest</a>
</td>
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.002s</td>
<td class="success">100%</td>
</tr>
</table>
</div>
</div>
<div id="footer">
<p>
<div>
<label class="hidden" id="label-for-line-wrapping-toggle" for="line-wrapping-toggle">Wrap lines
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.5</a> at 2020. 12. 2. 오후 3:35:17</p>
</div>
</div>
</body>
</html>

View File

@@ -1,5 +0,0 @@
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.h2.console.enabled=true
spring.profiles.include=oauth
spring.session.store-type=jdbc

View File

@@ -1,74 +0,0 @@
var main = {
init: function () {
var _this = this;
$('#btn-save').on('click', function () {
_this.save();
});
$('#btn-update').on('click', function () {
_this.update();
});
$('#btn-delete').on('click', function () {
_this.delete();
});
},
save: function () {
var data = {
title: $('#title').val(),
author: $('#author').val(),
content: $('#content').val()
};
$.ajax({
type: 'POST',
url: '/api/v1/posts',
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify(data)
}).done(function () {
alert('글이 등록되었습니다.');
window.location.href = '/';
}).fail(function (error) {
alert(JSON.stringify(error));
});
},
update: function () {
var data = {
title: $('#title').val(),
content: $('#content').val()
};
var id = $('#id').val();
$.ajax({
type: 'PUT',
url: '/api/v1/posts/' + id,
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: JSON.stringify(data)
}).done(function () {
alert('글이 수정되었습니다.');
window.location.href = '/';
}).fail(function (error) {
alert(JSON.stringify(error));
});
},
delete: function () {
var id = $('#id').val();
$.ajax({
type: 'DELETE',
url: '/api/v1/posts/' + id,
dataType: 'json',
contentType: 'application/json; charset=utf-8'
}).done(function () {
alert('글이 삭제되었습니다.');
window.location.href = '/';
}).fail(function (error) {
alert(JSON.stringify(error));
})
}
};
main.init();

View File

@@ -1,44 +0,0 @@
{{>layout/header}}
<h1>스프링 부트로 시작하는 웹 서비스</h1>
<div class="col-md-12">
<!--로그인 기능 영역-->
<div class="row">
<div class="col-md-6">
<a href="/posts/save" role="button" class="btn btn-primary">글 등록</a>
{{#userName}}
Logged in as : <span id="user">{{username}}</span>
<a href="/logout" class="btn btn-info active" role="button">Logout</a>
{{/userName}}
{{^userName}}
<a href="/oauth2/authorization/google" class="btn btn-success active" role="button">Google Login</a>
<a href="/oauth2/authorization/naver" class="btn btn-secondary active" role="button">Naver Login</a>
{{/userName}}
</div>
</div>
</div>
<br>
<!-- 목록 출력 영역 -->
<table class="table table-horizontal table-bordered">
<thead class="thead-strong">
<tr>
<th>게시글번호</th>
<th>제목</th>
<th>작성자</th>
<th>최종수정일</th>
</tr>
</thead>
<tbody id="tbody">
{{#posts}}
<tr>
<td>{{id}}</td>
<td><a href="/posts/update/{{id}}">{{title}}</a></td>
<td>{{author}}</td>
<td>{{modifiedDate}}</td>
</tr>
{{/posts}}
</tbody>
</table>
</div>
{{>layout/footer}}

View File

@@ -1,7 +0,0 @@
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<!--index.js 추가-->
<script src="/js/app/index.js"></script>
</body>
</html>

View File

@@ -1,9 +0,0 @@
<!DOCTYPE HTML>
<html>
<head>
<title>스프링 부트 웹 서비스</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
</head>
<body>

View File

@@ -1,26 +0,0 @@
{{>layout/header}}
<h1>게시글 등록</h1>
<div class="col-md-12">
<div class="col-md-4">
<form>
<div class="form-group">
<label for="title">제목</label>
<input type="text" class="form-control" id="title" placeholder="제목을 입력하세요">
</div>
<div class="form-group">
<label for="author">작성자</label>
<input type="text" class="form-control" id="author" placeholder="작성자를 입력하세요">
</div>
<div class="form-group">
<label for="content">내용</label>
<textarea class="form-control" id="content" placeholder="내용을 입력하세요"></textarea>
</div>
</form>
<a href="/" role="button" class="btn btn-secondary">취소</a>
<button type="button" class="btn btn-primary" id="btn-save">등록</button>
</div>
</div>
{{>layout/footer}}

View File

@@ -1,31 +0,0 @@
{{>layout/header}}
<h1>게시글 수정</h1>
<div class="col-md-12">
<div class="col-md-4">
<form>
<div class="form-group">
<label for="id">글 번호</label>
<input type="text" class="form-control" id="id" value="{{post.id}}" readonly>
</div>
<div class="form-group">
<label for="title">제목</label>
<input type="text" class="form-control" id="title" value="{{post.title}}">
</div>
<div class="form-group">
<label for="author">작성자</label>
<input type="text" class="form-control" id="author" value="{{post.author}}" readonly>
</div>
<div class="form-group">
<label for="content">내용</label>
<textarea class="form-control" id="content">{{post.content}}</textarea>
</div>
</form>
<a href="/" role="button" class="btn btn-secondary">취소</a>
<button type="button" class="btn btn-primary" id="btn-update">수정 완료</button>
<button type="button" class="btn btn-danger" id="btn-delete">삭제</button>
</div>
</div>
{{>layout/footer}}

View File

@@ -1,9 +0,0 @@
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.h2.console.enabled=true
spring.session.store-type=jdbc
# Test OAuth
spring.security.oauth2.client.registration.google.client-id=test
spring.security.oauth2.client.registration.google.client-secret=test
spring.security.oauth2.client.registration.google.scope=profile,email

View File

@@ -1,76 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest" tests="2" skipped="0" failures="0" errors="0" timestamp="2020-12-02T06:35:14" hostname="DESKTOP-FSO9NHB" time="0.27">
<properties/>
<testcase name="게시글저장_불러오기" classname="com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest" time="0.251"/>
<testcase name="BaseTimeEntity_등록" classname="com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest" time="0.018"/>
<system-out><![CDATA[15:35:08.843 [Test worker] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:08.843 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
15:35:08.859 [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)]
15:35:08.874 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
15:35:08.890 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest], using SpringBootContextLoader
15:35:08.890 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: class path resource [com/banjjoknim/book/springboot/domain/posts/PostsRepositoryTest-context.xml] does not exist
15:35:08.890 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: class path resource [com/banjjoknim/book/springboot/domain/posts/PostsRepositoryTestContext.groovy] does not exist
15:35:08.890 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: no resource found for suffixes {-context.xml, Context.groovy}.
15:35:08.890 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: PostsRepositoryTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
15:35:08.937 [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.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.015 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [C:\Users\User\IdeaProjects\TIL(Today-I-Learned)\WebServiceBySpringBootAndAWS\build\classes\java\main\com\banjjoknim\book\springboot\Application.class]
15:35:09.015 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.banjjoknim.book.springboot.Application for test class com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest
15:35:09.124 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]: using defaults.
15:35:09.124 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener, org.springframework.security.test.context.support.ReactorContextTestExecutionListener, 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.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.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
15:35:09.140 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2bbfc0c4, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@d472061, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@1203784b, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@cadd549, org.springframework.test.context.support.DirtiesContextTestExecutionListener@59418df8, org.springframework.test.context.transaction.TransactionalTestExecutionListener@6d31ea99, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@64f90654, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@69c901f, org.springframework.security.test.context.support.ReactorContextTestExecutionListener@53e7f379, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@3160bebe, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@1d07c560, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@7ff9b2b7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@13e9ea0a, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@27c82387]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@21e49c60 testClass = PostsRepositoryTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@11a13124 testClass = PostsRepositoryTest, locations = '{}', classes = '{class com.banjjoknim.book.springboot.Application}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@56a49bff, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@5ad4f966, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@f844f52, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@61dbede6], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null].
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.140 [Test worker] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest]
15:35:09.171 [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, server.port=-1}
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.7.RELEASE)
2020-12-02 15:35:09.437 INFO 13132 --- [ Test worker] c.b.b.s.d.posts.PostsRepositoryTest : Starting PostsRepositoryTest on DESKTOP-FSO9NHB with PID 13132 (started by User in C:\Users\User\IdeaProjects\TIL(Today-I-Learned)\WebServiceBySpringBootAndAWS)
2020-12-02 15:35:09.437 INFO 13132 --- [ Test worker] c.b.b.s.d.posts.PostsRepositoryTest : No active profile set, falling back to default profiles: default
2020-12-02 15:35:10.202 INFO 13132 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2020-12-02 15:35:10.265 INFO 13132 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 63ms. Found 2 repository interfaces.
2020-12-02 15:35:10.671 INFO 13132 --- [ Test worker] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$9b5422d2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-12-02 15:35:10.843 INFO 13132 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2020-12-02 15:35:11.030 INFO 13132 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2020-12-02 15:35:11.124 INFO 13132 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2020-12-02 15:35:11.233 INFO 13132 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate Core {5.3.10.Final}
2020-12-02 15:35:11.233 INFO 13132 --- [ Test worker] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
2020-12-02 15:35:11.421 INFO 13132 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
2020-12-02 15:35:11.577 INFO 13132 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
Hibernate: drop table if exists posts
Hibernate: drop table if exists user
Hibernate: create table posts (id bigint not null auto_increment, created_date datetime, modified_date datetime, author varchar(255), content TEXT not null, title varchar(500) not null, primary key (id)) engine=InnoDB
Hibernate: create table user (id bigint not null auto_increment, created_date datetime, modified_date datetime, email varchar(255) not null, name varchar(255) not null, picture varchar(255), role varchar(255) not null, primary key (id)) engine=InnoDB
2020-12-02 15:35:12.264 INFO 13132 --- [ Test worker] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@75bc8cf5'
2020-12-02 15:35:12.264 INFO 13132 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-12-02 15:35:12.762 INFO 13132 --- [ Test worker] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2020-12-02 15:35:13.168 INFO 13132 --- [ Test worker] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@55de361f, org.springframework.security.web.context.SecurityContextPersistenceFilter@4ae4d4db, org.springframework.security.web.header.HeaderWriterFilter@549c39b, org.springframework.security.web.authentication.logout.LogoutFilter@9f384cb, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter@183d75e5, org.springframework.security.oauth2.client.web.OAuth2LoginAuthenticationFilter@7cef32a7, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@3e6cf7c2, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@7934c071, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@1e9ff1bf, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@685bd49, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@480fba81, org.springframework.security.web.session.SessionManagementFilter@c9cd571, org.springframework.security.web.access.ExceptionTranslationFilter@4992fe6f, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@55b06158]
2020-12-02 15:35:13.621 INFO 13132 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-12-02 15:35:13.684 WARN 13132 --- [ Test worker] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2020-12-02 15:35:13.715 INFO 13132 --- [ Test worker] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
2020-12-02 15:35:14.121 INFO 13132 --- [ Test worker] s.a.ScheduledAnnotationBeanPostProcessor : No TaskScheduler/ScheduledExecutorService bean found for scheduled processing
2020-12-02 15:35:14.137 INFO 13132 --- [ Test worker] c.b.b.s.d.posts.PostsRepositoryTest : Started PostsRepositoryTest in 4.95 seconds (JVM running for 5.974)
Hibernate: insert into posts (created_date, modified_date, author, content, title) values (?, ?, ?, ?, ?)
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: delete from posts where id=?
Hibernate: insert into posts (created_date, modified_date, author, content, title) values (?, ?, ?, ?, ?)
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
>>>>>>>>>> createDate=2020-12-02T15:35:14.402599, modifiedDate=2020-12-02T15:35:14.402599
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: delete from posts where id=?
]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>

View File

@@ -1,56 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.banjjoknim.book.springboot.web.IndexControllerTest" tests="1" skipped="0" failures="0" errors="0" timestamp="2020-12-02T06:35:16" hostname="DESKTOP-FSO9NHB" time="0.143">
<properties/>
<testcase name="메인페이지_로딩" classname="com.banjjoknim.book.springboot.web.IndexControllerTest" time="0.143"/>
<system-out><![CDATA[2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.banjjoknim.book.springboot.web.IndexControllerTest], using SpringBootContextLoader
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.banjjoknim.book.springboot.web.IndexControllerTest]: no resource found for suffixes {-context.xml, Context.groovy}.
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.banjjoknim.book.springboot.web.IndexControllerTest]: IndexControllerTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.banjjoknim.book.springboot.Application for test class com.banjjoknim.book.springboot.web.IndexControllerTest
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener, org.springframework.security.test.context.support.ReactorContextTestExecutionListener, 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.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.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2020-12-02 15:35:15.246 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@62a4c0c, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4a17dcff, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@761406b2, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@4320a5e1, org.springframework.test.context.support.DirtiesContextTestExecutionListener@17bedba5, org.springframework.test.context.transaction.TransactionalTestExecutionListener@63ba0d89, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@354da6da, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@7384023f, org.springframework.security.test.context.support.ReactorContextTestExecutionListener@12068c19, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@21e31d95, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@79c01405, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@2a8674f8, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@cc643f5, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@35f0e84d]
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.7.RELEASE)
2020-12-02 15:35:15.277 INFO 13132 --- [ Test worker] c.b.b.s.web.IndexControllerTest : Starting IndexControllerTest on DESKTOP-FSO9NHB with PID 13132 (started by User in C:\Users\User\IdeaProjects\TIL(Today-I-Learned)\WebServiceBySpringBootAndAWS)
2020-12-02 15:35:15.277 INFO 13132 --- [ Test worker] c.b.b.s.web.IndexControllerTest : No active profile set, falling back to default profiles: default
2020-12-02 15:35:15.449 INFO 13132 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2020-12-02 15:35:15.464 INFO 13132 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 15ms. Found 2 repository interfaces.
2020-12-02 15:35:15.542 INFO 13132 --- [ Test worker] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$9b5422d2] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2020-12-02 15:35:15.746 INFO 13132 --- [ Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 0 (http)
2020-12-02 15:35:15.777 INFO 13132 --- [ Test worker] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2020-12-02 15:35:15.777 INFO 13132 --- [ Test worker] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.22]
2020-12-02 15:35:15.917 INFO 13132 --- [ Test worker] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2020-12-02 15:35:15.917 INFO 13132 --- [ Test worker] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 640 ms
2020-12-02 15:35:16.058 INFO 13132 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Starting...
2020-12-02 15:35:16.058 INFO 13132 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-2 - Start completed.
2020-12-02 15:35:16.089 INFO 13132 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2020-12-02 15:35:16.105 INFO 13132 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
Hibernate: drop table if exists posts
Hibernate: drop table if exists user
Hibernate: create table posts (id bigint not null auto_increment, created_date datetime, modified_date datetime, author varchar(255), content TEXT not null, title varchar(500) not null, primary key (id)) engine=InnoDB
Hibernate: create table user (id bigint not null auto_increment, created_date datetime, modified_date datetime, email varchar(255) not null, name varchar(255) not null, picture varchar(255), role varchar(255) not null, primary key (id)) engine=InnoDB
2020-12-02 15:35:16.136 INFO 13132 --- [ Test worker] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@75bc8cf5'
2020-12-02 15:35:16.136 INFO 13132 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-12-02 15:35:16.402 INFO 13132 --- [ Test worker] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
2020-12-02 15:35:16.511 INFO 13132 --- [ Test worker] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: any request, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@4eafc850, org.springframework.security.web.context.SecurityContextPersistenceFilter@7e9bc647, org.springframework.security.web.header.HeaderWriterFilter@1b4443db, org.springframework.security.web.authentication.logout.LogoutFilter@50ab7e5a, org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter@3942deec, org.springframework.security.oauth2.client.web.OAuth2LoginAuthenticationFilter@163ef381, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@70a237f7, org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@434ac8c5, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@47891623, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@7e6acf92, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@6c50cbfe, org.springframework.security.web.session.SessionManagementFilter@7d8e7919, org.springframework.security.web.access.ExceptionTranslationFilter@52cd6cc3, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@2a1f931]
2020-12-02 15:35:16.636 INFO 13132 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-12-02 15:35:16.652 WARN 13132 --- [ Test worker] aWebConfiguration$JpaWebMvcConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2020-12-02 15:35:16.667 INFO 13132 --- [ Test worker] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page template: index
2020-12-02 15:35:16.855 INFO 13132 --- [ Test worker] s.a.ScheduledAnnotationBeanPostProcessor : No TaskScheduler/ScheduledExecutorService bean found for scheduled processing
2020-12-02 15:35:16.886 INFO 13132 --- [ Test worker] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 5227 (http) with context path ''
2020-12-02 15:35:16.886 INFO 13132 --- [ Test worker] c.b.b.s.web.IndexControllerTest : Started IndexControllerTest in 1.64 seconds (JVM running for 8.723)
2020-12-02 15:35:16.948 INFO 13132 --- [o-auto-1-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-12-02 15:35:16.948 INFO 13132 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2020-12-02 15:35:16.964 INFO 13132 --- [o-auto-1-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 16 ms
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_ order by posts0_.id DESC
]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>

View File

@@ -1,30 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.banjjoknim.book.springboot.web.PostsApiControllerTest" tests="2" skipped="0" failures="0" errors="0" timestamp="2020-12-02T06:35:17" hostname="DESKTOP-FSO9NHB" time="0.083">
<properties/>
<testcase name="Posts_등록된다" classname="com.banjjoknim.book.springboot.web.PostsApiControllerTest" time="0.057"/>
<testcase name="Posts_수정된다" classname="com.banjjoknim.book.springboot.web.PostsApiControllerTest" time="0.025"/>
<system-out><![CDATA[2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.banjjoknim.book.springboot.web.PostsApiControllerTest], using SpringBootContextLoader
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.banjjoknim.book.springboot.web.PostsApiControllerTest]: no resource found for suffixes {-context.xml, Context.groovy}.
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.banjjoknim.book.springboot.web.PostsApiControllerTest]: PostsApiControllerTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.banjjoknim.book.springboot.Application for test class com.banjjoknim.book.springboot.web.PostsApiControllerTest
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener, org.springframework.security.test.context.support.ReactorContextTestExecutionListener, 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.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.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
2020-12-02 15:35:17.026 INFO 13132 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@63efdaba, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@361baf94, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@df5e602, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6f1eab5b, org.springframework.test.context.support.DirtiesContextTestExecutionListener@72b98608, org.springframework.test.context.transaction.TransactionalTestExecutionListener@19b5e0c4, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3b52d006, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@210ce044, org.springframework.security.test.context.support.ReactorContextTestExecutionListener@1f3babab, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@293ecb48, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@441fc89, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@42092285, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@2daf9c, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@5f96505a]
2020-12-02 15:35:17.042 INFO 13132 --- [ Test worker] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring TestDispatcherServlet ''
2020-12-02 15:35:17.042 INFO 13132 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
2020-12-02 15:35:17.042 INFO 13132 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms
Hibernate: insert into posts (created_date, modified_date, author, content, title) values (?, ?, ?, ?, ?)
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: delete from posts where id=?
2020-12-02 15:35:17.105 INFO 13132 --- [ Test worker] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring TestDispatcherServlet ''
2020-12-02 15:35:17.105 INFO 13132 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Initializing Servlet ''
2020-12-02 15:35:17.105 INFO 13132 --- [ Test worker] o.s.t.web.servlet.TestDispatcherServlet : Completed initialization in 0 ms
Hibernate: insert into posts (created_date, modified_date, author, content, title) values (?, ?, ?, ?, ?)
Hibernate: select posts0_.id as id1_0_0_, posts0_.created_date as created_2_0_0_, posts0_.modified_date as modified3_0_0_, posts0_.author as author4_0_0_, posts0_.content as content5_0_0_, posts0_.title as title6_0_0_ from posts posts0_ where posts0_.id=?
Hibernate: update posts set created_date=?, modified_date=?, author=?, content=?, title=? where id=?
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: select posts0_.id as id1_0_, posts0_.created_date as created_2_0_, posts0_.modified_date as modified3_0_, posts0_.author as author4_0_, posts0_.content as content5_0_, posts0_.title as title6_0_ from posts posts0_
Hibernate: delete from posts where id=?
]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>

View File

@@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.banjjoknim.book.springboot.web.dto.HelloResponseDtoTest" tests="1" skipped="0" failures="0" errors="0" timestamp="2020-12-02T06:35:14" hostname="DESKTOP-FSO9NHB" time="0.002">
<properties/>
<testcase name="롬복_기능_테스트" classname="com.banjjoknim.book.springboot.web.dto.HelloResponseDtoTest" time="0.002"/>
<system-out><![CDATA[]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>

View File

@@ -1,53 +0,0 @@
com/banjjoknim/book/springboot/config/auth/LoginUserArgumentResolver.java
com.banjjoknim.book.springboot.config.auth.LoginUserArgumentResolver
com/banjjoknim/book/springboot/web/IndexController.java
com.banjjoknim.book.springboot.web.IndexController
com/banjjoknim/book/springboot/web/dto/PostsResponseDto.java
com.banjjoknim.book.springboot.web.dto.PostsResponseDto
com/banjjoknim/book/springboot/domain/posts/Posts.java
com.banjjoknim.book.springboot.domain.posts.Posts
com.banjjoknim.book.springboot.domain.posts.Posts$PostsBuilder
com/banjjoknim/book/springboot/web/dto/PostsUpdateRequestDto.java
com.banjjoknim.book.springboot.web.dto.PostsUpdateRequestDto
com.banjjoknim.book.springboot.web.dto.PostsUpdateRequestDto$PostsUpdateRequestDtoBuilder
com/banjjoknim/book/springboot/domain/BaseTimeEntity.java
com.banjjoknim.book.springboot.domain.BaseTimeEntity
com/banjjoknim/book/springboot/domain/user/Role.java
com.banjjoknim.book.springboot.domain.user.Role
com/banjjoknim/book/springboot/web/dto/HelloResponseDto.java
com.banjjoknim.book.springboot.web.dto.HelloResponseDto
com/banjjoknim/book/springboot/service/PostsService.java
com.banjjoknim.book.springboot.service.PostsService
com/banjjoknim/book/springboot/config/auth/dto/OAuthAttributes.java
com.banjjoknim.book.springboot.config.auth.dto.OAuthAttributes
com.banjjoknim.book.springboot.config.auth.dto.OAuthAttributes$OAuthAttributesBuilder
com/banjjoknim/book/springboot/config/auth/LoginUser.java
com.banjjoknim.book.springboot.config.auth.LoginUser
com/banjjoknim/book/springboot/web/dto/PostsSaveRequestDto.java
com.banjjoknim.book.springboot.web.dto.PostsSaveRequestDto
com.banjjoknim.book.springboot.web.dto.PostsSaveRequestDto$PostsSaveRequestDtoBuilder
com/banjjoknim/book/springboot/config/auth/dto/SessionUser.java
com.banjjoknim.book.springboot.config.auth.dto.SessionUser
com/banjjoknim/book/springboot/config/WebConfig.java
com.banjjoknim.book.springboot.config.WebConfig
com/banjjoknim/book/springboot/web/HelloController.java
com.banjjoknim.book.springboot.web.HelloController
com/banjjoknim/book/springboot/domain/user/UserRepository.java
com.banjjoknim.book.springboot.domain.user.UserRepository
com/banjjoknim/book/springboot/domain/posts/PostsRepository.java
com.banjjoknim.book.springboot.domain.posts.PostsRepository
com/banjjoknim/book/springboot/web/PostsApiController.java
com.banjjoknim.book.springboot.web.PostsApiController
com/banjjoknim/book/springboot/config/auth/CustomOAuth2UserService.java
com.banjjoknim.book.springboot.config.auth.CustomOAuth2UserService
com/banjjoknim/book/springboot/domain/user/User.java
com.banjjoknim.book.springboot.domain.user.User
com.banjjoknim.book.springboot.domain.user.User$UserBuilder
com/banjjoknim/book/springboot/web/dto/PostsListResponseDto.java
com.banjjoknim.book.springboot.web.dto.PostsListResponseDto
com/banjjoknim/book/springboot/config/auth/SecurityConfig.java
com.banjjoknim.book.springboot.config.auth.SecurityConfig
com/banjjoknim/book/springboot/Application.java
com.banjjoknim.book.springboot.Application
com/banjjoknim/book/springboot/config/JpaConfig.java
com.banjjoknim.book.springboot.config.JpaConfig

View File

@@ -1,10 +0,0 @@
com/banjjoknim/book/springboot/web/dto/HelloResponseDtoTest.java
com.banjjoknim.book.springboot.web.dto.HelloResponseDtoTest
com/banjjoknim/book/springboot/web/IndexControllerTest.java
com.banjjoknim.book.springboot.web.IndexControllerTest
com/banjjoknim/book/springboot/web/PostsApiControllerTest.java
com.banjjoknim.book.springboot.web.PostsApiControllerTest
com/banjjoknim/book/springboot/domain/posts/PostsRepositoryTest.java
com.banjjoknim.book.springboot.domain.posts.PostsRepositoryTest
com/banjjoknim/book/springboot/web/HelloControllerTest.java
com.banjjoknim.book.springboot.web.HelloControllerTest

View File

@@ -518,6 +518,15 @@ notifications:
모든 내용을 작성했다면 프로젝트를 커밋하고 푸시합니다. 깃허브로 푸시가 되면 `Travis CI`가 자동으로 시작됩니다.
`Travis CI`가 끝나면 `CodeDeploy` 화면 아래에서 배포가 수행되는 것을 확인할 수 있습니다(그룹 배포 내역).
>###### 학습중 발생 오류 추가
>![Chapter9_Travis_deploy_fali_by_ruby_version](https://user-images.githubusercontent.com/68052095/101242974-577a4e80-3740-11eb-8c2e-425da8609207.PNG)
>CodeDeploy 환경구성에 Amazon EC2 인스턴스 설정이 잘못되어서 생긴 문제라고 한다
(태그가 잘못되어서 생긴 문제).
>또는 `travis.yml`에 오타가 있어서 트레비스 트리거가 작동하지 않아 발생한 오류라고 한다.
>나의 경우에는 아래 사진에 표시된 부분이 달라서 트리거가 작동하지 않은 것 같다.
>![Chapter9_Travis_deploy_fali_by_ruby_version2](https://user-images.githubusercontent.com/68052095/101245049-8ea32c80-374d-11eb-8b1b-ad2ffccf6455.png)
>참고 링크 : [travis ci , s3, codeDeploy 연동 실패](https://github.com/jojoldu/freelec-springboot2-webservice/issues/474), [Travis CI, AWS S3, AWS CodeDeploy 배포 오류](https://jhhj424.tistory.com/16)
![Chapter9_CodeDeploy_success!](https://user-images.githubusercontent.com/68052095/101129462-ef930d80-3644-11eb-9fa0-d8b425cd574c.PNG)
배포가 끝났다면 다음 명령어로 파일들이 잘 도착했는지 확인해 봅니다.
@@ -563,7 +572,7 @@ notifications:
>
>echo "> 새 애플리케이션 배포"
>
>JAR_NAME=$(ls -tr \$REPOSITORY/*.jar | tall -n 1)
>JAR_NAME=$(ls -tr \$REPOSITORY/*.jar | tail -n 1)
>
>echo "> JAR_NAME 에 실행권한 추가"
>

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB