Commit eaa78fb5 authored by Kyle Muldoon's avatar Kyle Muldoon

built out docker-compose, having issues connecting to db

parent 95a072d4
FROM openjdk:8-jdk-alpine
# EXPOSE 8080
ARG JAR_FILE=build/libs/employeeservice-0.0.1-SNAPSHOT.jar
ADD ${JAR_FILE} app.jar
ENTRYPOINT ["java","-jar","/app.jar"]
...@@ -19,9 +19,12 @@ dependencies { ...@@ -19,9 +19,12 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'junit:junit:4.12' implementation 'junit:junit:4.12'
implementation 'junit:junit:4.12' implementation 'junit:junit:4.12'
runtimeOnly 'com.h2database:h2' runtimeOnly 'mysql:mysql-connector-java'
// runtimeOnly 'com.h2database:h2'
testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'com.h2database:h2' testImplementation 'com.h2database:h2'
} }
test { test {
......
No preview for this file type
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</td> </td>
<td> <td>
<div class="infoBox" id="duration"> <div class="infoBox" id="duration">
<div class="counter">0.006s</div> <div class="counter">0.003s</div>
<p>duration</p> <p>duration</p>
</div> </div>
</td> </td>
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
</thead> </thead>
<tr> <tr>
<td class="success">contextLoads()</td> <td class="success">contextLoads()</td>
<td class="success">0.006s</td> <td class="success">0.003s</td>
<td class="success">passed</td> <td class="success">passed</td>
</tr> </tr>
</table> </table>
...@@ -87,12 +87,12 @@ ...@@ -87,12 +87,12 @@
<div id="tab1" class="tab"> <div id="tab1" class="tab">
<h2>Standard output</h2> <h2>Standard output</h2>
<span class="code"> <span class="code">
<pre>2021-04-19 13:27:20.819 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests], using SpringBootContextLoader <pre>2021-04-21 17:49:26.054 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests], using SpringBootContextLoader
2021-04-19 13:27:20.820 INFO 34174 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}. 2021-04-21 17:49:26.055 INFO 71961 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
2021-04-19 13:27:20.821 INFO 34174 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: EmployeeServiceApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2021-04-21 17:49:26.056 INFO 71961 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: EmployeeServiceApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2021-04-19 13:27:20.825 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.EmployeeServiceApplicationTests 2021-04-21 17:49:26.060 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.EmployeeServiceApplicationTests
2021-04-19 13:27:20.827 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] 2021-04-21 17:49:26.061 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
2021-04-19 13:27:20.827 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@4a1208b, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@6b986f66, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@668d4043, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@600ecf6e, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6da61e9c, org.springframework.test.context.support.DirtiesContextTestExecutionListener@45edaf11, org.springframework.test.context.transaction.TransactionalTestExecutionListener@496e60b7, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5f0db34b, org.springframework.test.context.event.EventPublishingTestExecutionListener@20204c8, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@2a3fa6be, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@10ee1096, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@22cb7e2b, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@307d1afe, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@67a05019, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@72a96db] 2021-04-21 17:49:26.062 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2efdf7f9, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@47b9e423, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@49696170, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@20ee5dd, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@438d985a, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4b1de4f4, org.springframework.test.context.transaction.TransactionalTestExecutionListener@497d7e06, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3c284af9, org.springframework.test.context.event.EventPublishingTestExecutionListener@13c85a6e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@37d626a7, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@1579e315, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@6bf81cc1, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@3ab230fa, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@3cd7da15, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@666cf7d1]
</pre> </pre>
</span> </span>
</div> </div>
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label> </label>
</div>Generated by </div>Generated by
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 19, 2021, 1:27:21 PM</p> <a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 21, 2021, 5:49:26 PM</p>
</div> </div>
</div> </div>
</body> </body>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
</td> </td>
<td> <td>
<div class="infoBox" id="duration"> <div class="infoBox" id="duration">
<div class="counter">0.206s</div> <div class="counter">0.196s</div>
<p>duration</p> <p>duration</p>
</div> </div>
</td> </td>
...@@ -189,17 +189,17 @@ ...@@ -189,17 +189,17 @@
</thead> </thead>
<tr> <tr>
<td class="failures">addEmployee()</td> <td class="failures">addEmployee()</td>
<td class="failures">0.168s</td> <td class="failures">0.153s</td>
<td class="failures">failed</td> <td class="failures">failed</td>
</tr> </tr>
<tr> <tr>
<td class="success">addEmployeeMocked()</td> <td class="success">addEmployeeMocked()</td>
<td class="success">0.023s</td> <td class="success">0.024s</td>
<td class="success">passed</td> <td class="success">passed</td>
</tr> </tr>
<tr> <tr>
<td class="success">findAllEmployees()</td> <td class="success">findAllEmployees()</td>
<td class="success">0.015s</td> <td class="success">0.019s</td>
<td class="success">passed</td> <td class="success">passed</td>
</tr> </tr>
</table> </table>
...@@ -207,22 +207,22 @@ ...@@ -207,22 +207,22 @@
<div id="tab2" class="tab"> <div id="tab2" class="tab">
<h2>Standard output</h2> <h2>Standard output</h2>
<span class="code"> <span class="code">
<pre>13:27:10.590 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] <pre>17:49:16.342 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
13:27:10.606 [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)] 17:49:16.358 [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)]
13:27:10.640 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.nisum.employeeservice.service.EmployeeServiceTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper] 17:49:16.409 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.nisum.employeeservice.service.EmployeeServiceTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
13:27:10.651 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.service.EmployeeServiceTest], using SpringBootContextLoader 17:49:16.422 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.service.EmployeeServiceTest], using SpringBootContextLoader
13:27:10.656 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: class path resource [com/nisum/employeeservice/service/EmployeeServiceTest-context.xml] does not exist 17:49:16.426 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: class path resource [com/nisum/employeeservice/service/EmployeeServiceTest-context.xml] does not exist
13:27:10.656 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: class path resource [com/nisum/employeeservice/service/EmployeeServiceTestContext.groovy] does not exist 17:49:16.427 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: class path resource [com/nisum/employeeservice/service/EmployeeServiceTestContext.groovy] does not exist
13:27:10.656 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: no resource found for suffixes {-context.xml, Context.groovy}. 17:49:16.428 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: no resource found for suffixes {-context.xml, Context.groovy}.
13:27:10.657 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: EmployeeServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 17:49:16.428 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: EmployeeServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
13:27:10.697 [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.nisum.employeeservice.service.EmployeeServiceTest] 17:49:16.481 [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.nisum.employeeservice.service.EmployeeServiceTest]
13:27:10.749 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/kmuldoon/Dev/practice/spring-boot-practice/CRUD-employee-service/employeeservice/build/classes/java/main/com/nisum/employeeservice/EmployeeServiceApplication.class] 17:49:16.530 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/kmuldoon/Dev/practice/spring-boot-practice/CRUD-employee-service/employeeservice/build/classes/java/main/com/nisum/employeeservice/EmployeeServiceApplication.class]
13:27:10.750 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.service.EmployeeServiceTest 17:49:16.531 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.service.EmployeeServiceTest
13:27:10.838 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.nisum.employeeservice.service.EmployeeServiceTest]: using defaults. 17:49:16.627 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.nisum.employeeservice.service.EmployeeServiceTest]: using defaults.
13:27:10.838 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] 17:49:16.628 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
13:27:10.850 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@503c42ca, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@71c70fc9, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@28d5a301, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@733a5ecf, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@41a27870, org.springframework.test.context.support.DirtiesContextTestExecutionListener@8d28eca, org.springframework.test.context.transaction.TransactionalTestExecutionListener@d9af97a, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@2c771220, org.springframework.test.context.event.EventPublishingTestExecutionListener@7e448e26, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@62fcfbfa, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@38778ff6, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@2c056cca, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@766ae2d2, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@73cce4ce, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@77c0cd7e] 17:49:16.644 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@503c42ca, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@71c70fc9, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@28d5a301, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@733a5ecf, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@41a27870, org.springframework.test.context.support.DirtiesContextTestExecutionListener@8d28eca, org.springframework.test.context.transaction.TransactionalTestExecutionListener@d9af97a, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@2c771220, org.springframework.test.context.event.EventPublishingTestExecutionListener@7e448e26, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@62fcfbfa, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@38778ff6, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@2c056cca, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@766ae2d2, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@73cce4ce, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@77c0cd7e]
13:27:10.853 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@760118be testClass = EmployeeServiceTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@3085512e testClass = EmployeeServiceTest, locations = '{}', classes = '{class com.nisum.employeeservice.EmployeeServiceApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@7ad261e7, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@3f64104c, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@7ff81e82, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@999bebe, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@f331d8e, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@600bf64a], 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]. 17:49:16.647 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@760118be testClass = EmployeeServiceTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@3085512e testClass = EmployeeServiceTest, locations = '{}', classes = '{class com.nisum.employeeservice.EmployeeServiceApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@7ad261e7, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@3f64104c, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@7ff81e82, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@999bebe, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@f331d8e, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@600bf64a], 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].
13:27:10.879 [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} 17:49:16.673 [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}
. ____ _ __ _ _ . ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
...@@ -232,23 +232,23 @@ ...@@ -232,23 +232,23 @@
=========|_|==============|___/=/_/_/_/ =========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.4.4) :: Spring Boot :: (v2.4.4)
2021-04-19 13:27:16.147 INFO 34174 --- [ Test worker] c.n.e.service.EmployeeServiceTest : Starting EmployeeServiceTest using Java 15.0.2 on USA-MAC-NIS1851.local with PID 34174 (started by kmuldoon in /Users/kmuldoon/Dev/practice/spring-boot-practice/CRUD-employee-service/employeeservice) 2021-04-21 17:49:21.903 INFO 71961 --- [ Test worker] c.n.e.service.EmployeeServiceTest : Starting EmployeeServiceTest using Java 15.0.2 on USA-MAC-NIS1851.local with PID 71961 (started by kmuldoon in /Users/kmuldoon/Dev/practice/spring-boot-practice/CRUD-employee-service/employeeservice)
2021-04-19 13:27:16.150 INFO 34174 --- [ Test worker] c.n.e.service.EmployeeServiceTest : No active profile set, falling back to default profiles: default 2021-04-21 17:49:21.905 INFO 71961 --- [ Test worker] c.n.e.service.EmployeeServiceTest : No active profile set, falling back to default profiles: default
2021-04-19 13:27:17.079 INFO 34174 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2021-04-21 17:49:22.750 INFO 71961 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-04-19 13:27:17.135 INFO 34174 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 49 ms. Found 1 JPA repository interfaces. 2021-04-21 17:49:22.794 INFO 71961 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 38 ms. Found 1 JPA repository interfaces.
2021-04-19 13:27:17.770 INFO 34174 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2021-04-21 17:49:23.331 INFO 71961 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-04-19 13:27:17.925 INFO 34174 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2021-04-21 17:49:23.495 INFO 71961 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-04-19 13:27:17.984 INFO 34174 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2021-04-21 17:49:23.568 INFO 71961 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-04-19 13:27:18.040 INFO 34174 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.29.Final 2021-04-21 17:49:23.610 INFO 71961 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.29.Final
2021-04-19 13:27:18.182 INFO 34174 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final} 2021-04-21 17:49:23.727 INFO 71961 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-04-19 13:27:18.289 INFO 34174 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 2021-04-21 17:49:23.821 INFO 71961 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2021-04-19 13:27:18.843 INFO 34174 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 2021-04-21 17:49:24.315 INFO 71961 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-04-19 13:27:18.849 INFO 34174 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2021-04-21 17:49:24.324 INFO 71961 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-04-19 13:27:19.394 WARN 34174 --- [ Test worker] JpaBaseConfiguration$JpaWebConfiguration : 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 2021-04-21 17:49:24.780 WARN 71961 --- [ Test worker] JpaBaseConfiguration$JpaWebConfiguration : 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
2021-04-19 13:27:19.704 INFO 34174 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2021-04-21 17:49:25.034 INFO 71961 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-04-19 13:27:19.756 INFO 34174 --- [ Test worker] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:dataSource' 2021-04-21 17:49:25.086 INFO 71961 --- [ Test worker] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:dataSource'
2021-04-19 13:27:20.249 INFO 34174 --- [ Test worker] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator' 2021-04-21 17:49:25.496 INFO 71961 --- [ Test worker] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2021-04-19 13:27:20.311 INFO 34174 --- [ Test worker] c.n.e.service.EmployeeServiceTest : Started EmployeeServiceTest in 9.425 seconds (JVM running for 10.401) 2021-04-21 17:49:25.558 INFO 71961 --- [ Test worker] c.n.e.service.EmployeeServiceTest : Started EmployeeServiceTest in 8.876 seconds (JVM running for 9.963)
</pre> </pre>
</span> </span>
</div> </div>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label> </label>
</div>Generated by </div>Generated by
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 19, 2021, 1:27:21 PM</p> <a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 21, 2021, 5:49:26 PM</p>
</div> </div>
</div> </div>
</body> </body>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</td> </td>
<td> <td>
<div class="infoBox" id="duration"> <div class="infoBox" id="duration">
<div class="counter">0.212s</div> <div class="counter">0.199s</div>
<p>duration</p> <p>duration</p>
</div> </div>
</td> </td>
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<td>1</td> <td>1</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>
<td>0.006s</td> <td>0.003s</td>
<td class="success">100%</td> <td class="success">100%</td>
</tr> </tr>
<tr> <tr>
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<td>3</td> <td>3</td>
<td>1</td> <td>1</td>
<td>0</td> <td>0</td>
<td>0.206s</td> <td>0.196s</td>
<td class="failures">66%</td> <td class="failures">66%</td>
</tr> </tr>
</tbody> </tbody>
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
<td>1</td> <td>1</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>
<td>0.006s</td> <td>0.003s</td>
<td class="success">100%</td> <td class="success">100%</td>
</tr> </tr>
<tr> <tr>
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<td>3</td> <td>3</td>
<td>1</td> <td>1</td>
<td>0</td> <td>0</td>
<td>0.206s</td> <td>0.196s</td>
<td class="failures">66%</td> <td class="failures">66%</td>
</tr> </tr>
</tbody> </tbody>
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label> </label>
</div>Generated by </div>Generated by
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 19, 2021, 1:27:21 PM</p> <a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 21, 2021, 5:49:26 PM</p>
</div> </div>
</div> </div>
</body> </body>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</td> </td>
<td> <td>
<div class="infoBox" id="duration"> <div class="infoBox" id="duration">
<div class="counter">0.006s</div> <div class="counter">0.003s</div>
<p>duration</p> <p>duration</p>
</div> </div>
</td> </td>
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
<td>1</td> <td>1</td>
<td>0</td> <td>0</td>
<td>0</td> <td>0</td>
<td>0.006s</td> <td>0.003s</td>
<td class="success">100%</td> <td class="success">100%</td>
</tr> </tr>
</table> </table>
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label> </label>
</div>Generated by </div>Generated by
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 19, 2021, 1:27:21 PM</p> <a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 21, 2021, 5:49:26 PM</p>
</div> </div>
</div> </div>
</body> </body>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</td> </td>
<td> <td>
<div class="infoBox" id="duration"> <div class="infoBox" id="duration">
<div class="counter">0.206s</div> <div class="counter">0.196s</div>
<p>duration</p> <p>duration</p>
</div> </div>
</td> </td>
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
<td>3</td> <td>3</td>
<td>1</td> <td>1</td>
<td>0</td> <td>0</td>
<td>0.206s</td> <td>0.196s</td>
<td class="failures">66%</td> <td class="failures">66%</td>
</tr> </tr>
</table> </table>
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/> <input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label> </label>
</div>Generated by </div>Generated by
<a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 19, 2021, 1:27:21 PM</p> <a href="http://www.gradle.org">Gradle 6.8.3</a> at Apr 21, 2021, 5:49:26 PM</p>
</div> </div>
</div> </div>
</body> </body>
......
spring.datasource.url=jdbc:h2:mem:dataSource spring.datasource.url=jdbc:mysql://db:8081/employeedb
spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=root
spring.datasource.username=sa spring.datasource.password=password
spring.datasource.password= spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57Dialect
spring.jpa.generate-ddl=false
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.datasource.schema=classpath:employee.sql spring.datasource.schema=classpath:employee.sql
info.app.name=Employee Service Application Actuator
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=none
spring.h2.console.enabled=true
management.endpoint.beans.enabled=true management.endpoint.beans.enabled=true
management.endpoints.web.exposure.include=* management.endpoints.web.exposure.include=*
info.app.name=Employee Service Application Actuator
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.nisum.employeeservice.EmployeeServiceApplicationTests" tests="1" skipped="0" failures="0" errors="0" timestamp="2021-04-19T20:27:20" hostname="USA-MAC-NIS1851.local" time="0.006"> <testsuite name="com.nisum.employeeservice.EmployeeServiceApplicationTests" tests="1" skipped="0" failures="0" errors="0" timestamp="2021-04-22T00:49:26" hostname="USA-MAC-NIS1851.local" time="0.003">
<properties/> <properties/>
<testcase name="contextLoads()" classname="com.nisum.employeeservice.EmployeeServiceApplicationTests" time="0.006"/> <testcase name="contextLoads()" classname="com.nisum.employeeservice.EmployeeServiceApplicationTests" time="0.003"/>
<system-out><![CDATA[2021-04-19 13:27:20.819 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests], using SpringBootContextLoader <system-out><![CDATA[2021-04-21 17:49:26.054 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests], using SpringBootContextLoader
2021-04-19 13:27:20.820 INFO 34174 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}. 2021-04-21 17:49:26.055 INFO 71961 --- [ Test worker] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
2021-04-19 13:27:20.821 INFO 34174 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: EmployeeServiceApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 2021-04-21 17:49:26.056 INFO 71961 --- [ Test worker] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.nisum.employeeservice.EmployeeServiceApplicationTests]: EmployeeServiceApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2021-04-19 13:27:20.825 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.EmployeeServiceApplicationTests 2021-04-21 17:49:26.060 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.EmployeeServiceApplicationTests
2021-04-19 13:27:20.827 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] 2021-04-21 17:49:26.061 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
2021-04-19 13:27:20.827 INFO 34174 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@4a1208b, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@6b986f66, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@668d4043, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@600ecf6e, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@6da61e9c, org.springframework.test.context.support.DirtiesContextTestExecutionListener@45edaf11, org.springframework.test.context.transaction.TransactionalTestExecutionListener@496e60b7, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@5f0db34b, org.springframework.test.context.event.EventPublishingTestExecutionListener@20204c8, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@2a3fa6be, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@10ee1096, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@22cb7e2b, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@307d1afe, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@67a05019, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@72a96db] 2021-04-21 17:49:26.062 INFO 71961 --- [ Test worker] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@2efdf7f9, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@47b9e423, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@49696170, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@20ee5dd, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@438d985a, org.springframework.test.context.support.DirtiesContextTestExecutionListener@4b1de4f4, org.springframework.test.context.transaction.TransactionalTestExecutionListener@497d7e06, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@3c284af9, org.springframework.test.context.event.EventPublishingTestExecutionListener@13c85a6e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@37d626a7, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@1579e315, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@6bf81cc1, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@3ab230fa, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@3cd7da15, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@666cf7d1]
]]></system-out> ]]></system-out>
<system-err><![CDATA[]]></system-err> <system-err><![CDATA[]]></system-err>
</testsuite> </testsuite>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.nisum.employeeservice.service.EmployeeServiceTest" tests="3" skipped="0" failures="1" errors="0" timestamp="2021-04-19T20:27:20" hostname="USA-MAC-NIS1851.local" time="0.21"> <testsuite name="com.nisum.employeeservice.service.EmployeeServiceTest" tests="3" skipped="0" failures="1" errors="0" timestamp="2021-04-22T00:49:25" hostname="USA-MAC-NIS1851.local" time="0.199">
<properties/> <properties/>
<testcase name="addEmployeeMocked()" classname="com.nisum.employeeservice.service.EmployeeServiceTest" time="0.023"/> <testcase name="addEmployeeMocked()" classname="com.nisum.employeeservice.service.EmployeeServiceTest" time="0.024"/>
<testcase name="findAllEmployees()" classname="com.nisum.employeeservice.service.EmployeeServiceTest" time="0.015"/> <testcase name="findAllEmployees()" classname="com.nisum.employeeservice.service.EmployeeServiceTest" time="0.019"/>
<testcase name="addEmployee()" classname="com.nisum.employeeservice.service.EmployeeServiceTest" time="0.168"> <testcase name="addEmployee()" classname="com.nisum.employeeservice.service.EmployeeServiceTest" time="0.153">
<failure message="org.opentest4j.AssertionFailedError: expected: &lt;1&gt; but was: &lt;2&gt;" type="org.opentest4j.AssertionFailedError">org.opentest4j.AssertionFailedError: expected: &lt;1&gt; but was: &lt;2&gt; <failure message="org.opentest4j.AssertionFailedError: expected: &lt;1&gt; but was: &lt;2&gt;" type="org.opentest4j.AssertionFailedError">org.opentest4j.AssertionFailedError: expected: &lt;1&gt; but was: &lt;2&gt;
at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55) at org.junit.jupiter.api.AssertionUtils.fail(AssertionUtils.java:55)
at org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62) at org.junit.jupiter.api.AssertionUtils.failNotEqual(AssertionUtils.java:62)
...@@ -103,22 +103,22 @@ ...@@ -103,22 +103,22 @@
at java.base/java.lang.Thread.run(Thread.java:832) at java.base/java.lang.Thread.run(Thread.java:832)
</failure> </failure>
</testcase> </testcase>
<system-out><![CDATA[13:27:10.590 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] <system-out><![CDATA[17:49:16.342 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
13:27:10.606 [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)] 17:49:16.358 [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)]
13:27:10.640 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.nisum.employeeservice.service.EmployeeServiceTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper] 17:49:16.409 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.nisum.employeeservice.service.EmployeeServiceTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
13:27:10.651 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.service.EmployeeServiceTest], using SpringBootContextLoader 17:49:16.422 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.employeeservice.service.EmployeeServiceTest], using SpringBootContextLoader
13:27:10.656 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: class path resource [com/nisum/employeeservice/service/EmployeeServiceTest-context.xml] does not exist 17:49:16.426 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: class path resource [com/nisum/employeeservice/service/EmployeeServiceTest-context.xml] does not exist
13:27:10.656 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: class path resource [com/nisum/employeeservice/service/EmployeeServiceTestContext.groovy] does not exist 17:49:16.427 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: class path resource [com/nisum/employeeservice/service/EmployeeServiceTestContext.groovy] does not exist
13:27:10.656 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: no resource found for suffixes {-context.xml, Context.groovy}. 17:49:16.428 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: no resource found for suffixes {-context.xml, Context.groovy}.
13:27:10.657 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: EmployeeServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 17:49:16.428 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.nisum.employeeservice.service.EmployeeServiceTest]: EmployeeServiceTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
13:27:10.697 [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.nisum.employeeservice.service.EmployeeServiceTest] 17:49:16.481 [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.nisum.employeeservice.service.EmployeeServiceTest]
13:27:10.749 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/kmuldoon/Dev/practice/spring-boot-practice/CRUD-employee-service/employeeservice/build/classes/java/main/com/nisum/employeeservice/EmployeeServiceApplication.class] 17:49:16.530 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/kmuldoon/Dev/practice/spring-boot-practice/CRUD-employee-service/employeeservice/build/classes/java/main/com/nisum/employeeservice/EmployeeServiceApplication.class]
13:27:10.750 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.service.EmployeeServiceTest 17:49:16.531 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.nisum.employeeservice.EmployeeServiceApplication for test class com.nisum.employeeservice.service.EmployeeServiceTest
13:27:10.838 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.nisum.employeeservice.service.EmployeeServiceTest]: using defaults. 17:49:16.627 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.nisum.employeeservice.service.EmployeeServiceTest]: using defaults.
13:27:10.838 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] 17:49:16.628 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener]
13:27:10.850 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@503c42ca, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@71c70fc9, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@28d5a301, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@733a5ecf, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@41a27870, org.springframework.test.context.support.DirtiesContextTestExecutionListener@8d28eca, org.springframework.test.context.transaction.TransactionalTestExecutionListener@d9af97a, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@2c771220, org.springframework.test.context.event.EventPublishingTestExecutionListener@7e448e26, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@62fcfbfa, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@38778ff6, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@2c056cca, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@766ae2d2, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@73cce4ce, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@77c0cd7e] 17:49:16.644 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@503c42ca, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@71c70fc9, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@28d5a301, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@733a5ecf, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@41a27870, org.springframework.test.context.support.DirtiesContextTestExecutionListener@8d28eca, org.springframework.test.context.transaction.TransactionalTestExecutionListener@d9af97a, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@2c771220, org.springframework.test.context.event.EventPublishingTestExecutionListener@7e448e26, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@62fcfbfa, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@38778ff6, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@2c056cca, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@766ae2d2, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@73cce4ce, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@77c0cd7e]
13:27:10.853 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@760118be testClass = EmployeeServiceTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@3085512e testClass = EmployeeServiceTest, locations = '{}', classes = '{class com.nisum.employeeservice.EmployeeServiceApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@7ad261e7, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@3f64104c, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@7ff81e82, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@999bebe, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@f331d8e, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@600bf64a], 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]. 17:49:16.647 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@760118be testClass = EmployeeServiceTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@3085512e testClass = EmployeeServiceTest, locations = '{}', classes = '{class com.nisum.employeeservice.EmployeeServiceApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@7ad261e7, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@3f64104c, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@7ff81e82, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@999bebe, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@f331d8e, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@600bf64a], 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].
13:27:10.879 [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} 17:49:16.673 [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}
. ____ _ __ _ _ . ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
...@@ -128,23 +128,23 @@ ...@@ -128,23 +128,23 @@
=========|_|==============|___/=/_/_/_/ =========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.4.4) :: Spring Boot :: (v2.4.4)
2021-04-19 13:27:16.147 INFO 34174 --- [ Test worker] c.n.e.service.EmployeeServiceTest : Starting EmployeeServiceTest using Java 15.0.2 on USA-MAC-NIS1851.local with PID 34174 (started by kmuldoon in /Users/kmuldoon/Dev/practice/spring-boot-practice/CRUD-employee-service/employeeservice) 2021-04-21 17:49:21.903 INFO 71961 --- [ Test worker] c.n.e.service.EmployeeServiceTest : Starting EmployeeServiceTest using Java 15.0.2 on USA-MAC-NIS1851.local with PID 71961 (started by kmuldoon in /Users/kmuldoon/Dev/practice/spring-boot-practice/CRUD-employee-service/employeeservice)
2021-04-19 13:27:16.150 INFO 34174 --- [ Test worker] c.n.e.service.EmployeeServiceTest : No active profile set, falling back to default profiles: default 2021-04-21 17:49:21.905 INFO 71961 --- [ Test worker] c.n.e.service.EmployeeServiceTest : No active profile set, falling back to default profiles: default
2021-04-19 13:27:17.079 INFO 34174 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2021-04-21 17:49:22.750 INFO 71961 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2021-04-19 13:27:17.135 INFO 34174 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 49 ms. Found 1 JPA repository interfaces. 2021-04-21 17:49:22.794 INFO 71961 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 38 ms. Found 1 JPA repository interfaces.
2021-04-19 13:27:17.770 INFO 34174 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2021-04-21 17:49:23.331 INFO 71961 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2021-04-19 13:27:17.925 INFO 34174 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2021-04-21 17:49:23.495 INFO 71961 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2021-04-19 13:27:17.984 INFO 34174 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2021-04-21 17:49:23.568 INFO 71961 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2021-04-19 13:27:18.040 INFO 34174 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.29.Final 2021-04-21 17:49:23.610 INFO 71961 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.29.Final
2021-04-19 13:27:18.182 INFO 34174 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final} 2021-04-21 17:49:23.727 INFO 71961 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
2021-04-19 13:27:18.289 INFO 34174 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 2021-04-21 17:49:23.821 INFO 71961 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2021-04-19 13:27:18.843 INFO 34174 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] 2021-04-21 17:49:24.315 INFO 71961 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2021-04-19 13:27:18.849 INFO 34174 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2021-04-21 17:49:24.324 INFO 71961 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2021-04-19 13:27:19.394 WARN 34174 --- [ Test worker] JpaBaseConfiguration$JpaWebConfiguration : 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 2021-04-21 17:49:24.780 WARN 71961 --- [ Test worker] JpaBaseConfiguration$JpaWebConfiguration : 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
2021-04-19 13:27:19.704 INFO 34174 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor' 2021-04-21 17:49:25.034 INFO 71961 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2021-04-19 13:27:19.756 INFO 34174 --- [ Test worker] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:dataSource' 2021-04-21 17:49:25.086 INFO 71961 --- [ Test worker] o.s.b.a.h2.H2ConsoleAutoConfiguration : H2 console available at '/h2-console'. Database available at 'jdbc:h2:mem:dataSource'
2021-04-19 13:27:20.249 INFO 34174 --- [ Test worker] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator' 2021-04-21 17:49:25.496 INFO 71961 --- [ Test worker] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2021-04-19 13:27:20.311 INFO 34174 --- [ Test worker] c.n.e.service.EmployeeServiceTest : Started EmployeeServiceTest in 9.425 seconds (JVM running for 10.401) 2021-04-21 17:49:25.558 INFO 71961 --- [ Test worker] c.n.e.service.EmployeeServiceTest : Started EmployeeServiceTest in 8.876 seconds (JVM running for 9.963)
]]></system-out> ]]></system-out>
<system-err><![CDATA[]]></system-err> <system-err><![CDATA[]]></system-err>
</testsuite> </testsuite>
Manifest-Version: 1.0 Manifest-Version: 1.0
Main-Class: org.springframework.boot.loader.JarLauncher
Start-Class: com.nisum.employeeservice.EmployeeServiceApplication
Spring-Boot-Version: 2.4.4
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
Spring-Boot-Classpath-Index: BOOT-INF/classpath.idx
Spring-Boot-Layers-Index: BOOT-INF/layers.idx
version: "3.9"
services:
db:
image: mysql
restart: always
environment:
MYSQL_DATABASE: 'employeedb'
MYSQL_PASSWORD: 'password'
MYSQL_ROOT_PASSWORD: 'password'
ports:
- '8081:3306'
web:
build: .
ports:
- "8080:8080"
spring.datasource.url=jdbc:h2:mem:dataSource spring.datasource.url=jdbc:mysql://db:8081/employeedb
spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=root
spring.datasource.username=sa spring.datasource.password=password
spring.datasource.password= spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL57Dialect
spring.jpa.generate-ddl=false
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl
spring.datasource.schema=classpath:employee.sql spring.datasource.schema=classpath:employee.sql
info.app.name=Employee Service Application Actuator
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=none
spring.h2.console.enabled=true
management.endpoint.beans.enabled=true management.endpoint.beans.enabled=true
management.endpoints.web.exposure.include=* management.endpoints.web.exposure.include=*
info.app.name=Employee Service Application Actuator
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment