Commit 3f98dc7e authored by Srinivas Kota's avatar Srinivas Kota

[Srinivas-001-Employee] : Initial commit with Get method

[Srinivas-001-Employee] : Updated Get employee Method.

Created Resource Package

[Srinivas-001-Employee] : Added Save employee Method.

[Srinivas-001-Employee] : Updated Save employee Method.

[Srinivas-001-Employee] : Added Get and Save Employee methods and
squashed the commit.
parent c2d5c63f
#Fri May 22 10:17:52 IST 2020
gradle.version=6.2.1
#Fri May 22 11:54:46 IST 2020
gradle.version=6.3
# Default ignored files
/workspace.xml
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="MavenRepo" />
<option name="name" value="MavenRepo" />
<option name="url" value="https://repo.maven.apache.org/maven2/" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/classes" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
......@@ -41,7 +41,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.134s</div>
<div class="counter">0.370s</div>
<p>duration</p>
</div>
</td>
......@@ -79,7 +79,7 @@
</thead>
<tr>
<td class="success">contextLoads()</td>
<td class="success">0.134s</td>
<td class="success">0.370s</td>
<td class="success">passed</td>
</tr>
</table>
......@@ -87,22 +87,22 @@
<div id="tab1" class="tab">
<h2>Standard output</h2>
<span class="code">
<pre>10:18:36.920 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
10:18:36.943 [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)]
10:18:36.991 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.nisum.epe.demo.DemoApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
10:18:37.024 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.epe.demo.DemoApplicationTests], using SpringBootContextLoader
10:18:37.032 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.epe.demo.DemoApplicationTests]: class path resource [com/nisum/epe/demo/DemoApplicationTests-context.xml] does not exist
10:18:37.032 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.epe.demo.DemoApplicationTests]: class path resource [com/nisum/epe/demo/DemoApplicationTestsContext.groovy] does not exist
10:18:37.033 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.nisum.epe.demo.DemoApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
10:18:37.035 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.nisum.epe.demo.DemoApplicationTests]: DemoApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
10:18:37.108 [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.epe.demo.DemoApplicationTests]
10:18:37.242 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [D:\demo-project-git-operations\build\classes\java\main\com\nisum\epe\demo\DemoApplication.class]
10:18:37.245 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.nisum.epe.demo.DemoApplication for test class com.nisum.epe.demo.DemoApplicationTests
10:18:37.466 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.nisum.epe.demo.DemoApplicationTests]: using defaults.
10:18:37.468 [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.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, org.springframework.test.context.event.EventPublishingTestExecutionListener]
10:18:37.514 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@43db3b75, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@466519b, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@6513de13, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1360a735, org.springframework.test.context.support.DirtiesContextTestExecutionListener@9fa36bf, org.springframework.test.context.transaction.TransactionalTestExecutionListener@3fa64492, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@443ee633, org.springframework.test.context.event.EventPublishingTestExecutionListener@5271b88e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@a6633b1, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7e964bb, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@3455150b, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@6b3f7ec7, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@50ff33aa]
10:18:37.522 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@da4e1cb testClass = DemoApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@3ebaf244 testClass = DemoApplicationTests, locations = '{}', classes = '{class com.nisum.epe.demo.DemoApplication}', 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@34d0bfc3, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@13c88e9d, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5c0ed3df, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@5f19d9a5, org.springframework.boot.test.context.SpringBootTestArgs@1], 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].
10:18:37.578 [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}
<pre>12:22:32.403 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
12:22:32.417 [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)]
12:22:32.452 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.nisum.epe.demo.DemoApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
12:22:32.474 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.epe.demo.DemoApplicationTests], using SpringBootContextLoader
12:22:32.479 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.epe.demo.DemoApplicationTests]: class path resource [com/nisum/epe/demo/DemoApplicationTests-context.xml] does not exist
12:22:32.480 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.epe.demo.DemoApplicationTests]: class path resource [com/nisum/epe/demo/DemoApplicationTestsContext.groovy] does not exist
12:22:32.481 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.nisum.epe.demo.DemoApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
12:22:32.482 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.nisum.epe.demo.DemoApplicationTests]: DemoApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
12:22:32.553 [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.epe.demo.DemoApplicationTests]
12:22:32.646 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [D:\projects\Pocs\demo-project-git-operations\build\classes\java\main\com\nisum\epe\demo\DemoApplication.class]
12:22:32.647 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.nisum.epe.demo.DemoApplication for test class com.nisum.epe.demo.DemoApplicationTests
12:22:32.790 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.nisum.epe.demo.DemoApplicationTests]: using defaults.
12:22:32.792 [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.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, org.springframework.test.context.event.EventPublishingTestExecutionListener]
12:22:32.812 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@543e4222, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@5a11a80f, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@4520fb93, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@78dcc200, org.springframework.test.context.support.DirtiesContextTestExecutionListener@5e55a06b, org.springframework.test.context.transaction.TransactionalTestExecutionListener@9d32a7e, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@4b6da4b4, org.springframework.test.context.event.EventPublishingTestExecutionListener@55bfb31b, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@261a073f, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@368a5958, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@10641339, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@386b4d45, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@4ebe8688]
12:22:32.817 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@589bac1a testClass = DemoApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@59f04050 testClass = DemoApplicationTests, locations = '{}', classes = '{class com.nisum.epe.demo.DemoApplication}', 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@44727704, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4079686c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@3a14be3b, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@21e96e7e, org.springframework.boot.test.context.SpringBootTestArgs@1], 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].
12:22:32.850 [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}
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
......@@ -112,21 +112,21 @@
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.7.RELEASE)
2020-05-22 10:18:37.975 INFO 7904 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : Starting DemoApplicationTests on HYD-LAP-00393 with PID 7904 (started by nmedarametla in D:\demo-project-git-operations)
2020-05-22 10:18:37.978 INFO 7904 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : No active profile set, falling back to default profiles: default
2020-05-22 10:18:49.132 INFO 7904 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2020-05-22 10:18:49.175 INFO 7904 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 25ms. Found 0 JPA repository interfaces.
2020-05-22 10:18:50.098 INFO 7904 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2020-05-22 10:18:50.434 INFO 7904 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2020-05-22 10:18:50.559 INFO 7904 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2020-05-22 10:18:50.676 INFO 7904 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.15.Final
2020-05-22 10:18:50.955 INFO 7904 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2020-05-22 10:18:51.236 INFO 7904 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2020-05-22 10:18:51.829 INFO 7904 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2020-05-22 10:18:51.848 INFO 7904 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-05-22 10:18:52.268 WARN 7904 --- [ 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
2020-05-22 10:18:52.741 INFO 7904 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-05-22 10:18:53.340 INFO 7904 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : Started DemoApplicationTests in 15.743 seconds (JVM running for 18.628)
2020-05-22 12:22:33.269 INFO 18184 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : Starting DemoApplicationTests on HYD-LAP-00497 with PID 18184 (started by skota in D:\projects\Pocs\demo-project-git-operations)
2020-05-22 12:22:33.271 INFO 18184 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : No active profile set, falling back to default profiles: default
2020-05-22 12:22:34.550 INFO 18184 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2020-05-22 12:22:34.584 INFO 18184 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 22ms. Found 0 JPA repository interfaces.
2020-05-22 12:22:35.275 INFO 18184 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2020-05-22 12:22:35.556 INFO 18184 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2020-05-22 12:22:35.656 INFO 18184 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2020-05-22 12:22:35.725 INFO 18184 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.15.Final
2020-05-22 12:22:35.926 INFO 18184 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2020-05-22 12:22:36.147 INFO 18184 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2020-05-22 12:22:36.730 INFO 18184 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2020-05-22 12:22:36.743 INFO 18184 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-05-22 12:22:37.336 WARN 18184 --- [ 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
2020-05-22 12:22:37.923 INFO 18184 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-05-22 12:22:38.451 INFO 18184 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : Started DemoApplicationTests in 5.589 seconds (JVM running for 7.519)
</pre>
</span>
</div>
......@@ -138,7 +138,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.2.1</a> at 22 May, 2020 10:18:53 AM</p>
<a href="http://www.gradle.org">Gradle 6.3</a> at 22-May-2020, 12:22:38 PM</p>
</div>
</div>
</body>
......
......@@ -38,7 +38,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.134s</div>
<div class="counter">0.370s</div>
<p>duration</p>
</div>
</td>
......@@ -85,7 +85,7 @@
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.134s</td>
<td>0.370s</td>
<td class="success">100%</td>
</tr>
</tbody>
......@@ -112,7 +112,7 @@
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.134s</td>
<td>0.370s</td>
<td class="success">100%</td>
</tr>
</tbody>
......@@ -126,7 +126,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.2.1</a> at 22 May, 2020 10:18:53 AM</p>
<a href="http://www.gradle.org">Gradle 6.3</a> at 22-May-2020, 12:22:38 PM</p>
</div>
</div>
</body>
......
......@@ -40,7 +40,7 @@
</td>
<td>
<div class="infoBox" id="duration">
<div class="counter">0.134s</div>
<div class="counter">0.370s</div>
<p>duration</p>
</div>
</td>
......@@ -83,7 +83,7 @@
<td>1</td>
<td>0</td>
<td>0</td>
<td>0.134s</td>
<td>0.370s</td>
<td class="success">100%</td>
</tr>
</table>
......@@ -96,7 +96,7 @@
<input id="line-wrapping-toggle" type="checkbox" autocomplete="off"/>
</label>
</div>Generated by
<a href="http://www.gradle.org">Gradle 6.2.1</a> at 22 May, 2020 10:18:53 AM</p>
<a href="http://www.gradle.org">Gradle 6.3</a> at 22-May-2020, 12:22:38 PM</p>
</div>
</div>
</body>
......
<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="com.nisum.epe.demo.DemoApplicationTests" tests="1" skipped="0" failures="0" errors="0" timestamp="2020-05-22T04:48:53" hostname="HYD-LAP-00393" time="0.134">
<testsuite name="com.nisum.epe.demo.DemoApplicationTests" tests="1" skipped="0" failures="0" errors="0" timestamp="2020-05-22T06:52:38" hostname="HYD-LAP-00497" time="0.37">
<properties/>
<testcase name="contextLoads()" classname="com.nisum.epe.demo.DemoApplicationTests" time="0.134"/>
<system-out><![CDATA[10:18:36.920 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
10:18:36.943 [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)]
10:18:36.991 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.nisum.epe.demo.DemoApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
10:18:37.024 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.epe.demo.DemoApplicationTests], using SpringBootContextLoader
10:18:37.032 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.epe.demo.DemoApplicationTests]: class path resource [com/nisum/epe/demo/DemoApplicationTests-context.xml] does not exist
10:18:37.032 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.epe.demo.DemoApplicationTests]: class path resource [com/nisum/epe/demo/DemoApplicationTestsContext.groovy] does not exist
10:18:37.033 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.nisum.epe.demo.DemoApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
10:18:37.035 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.nisum.epe.demo.DemoApplicationTests]: DemoApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
10:18:37.108 [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.epe.demo.DemoApplicationTests]
10:18:37.242 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [D:\demo-project-git-operations\build\classes\java\main\com\nisum\epe\demo\DemoApplication.class]
10:18:37.245 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.nisum.epe.demo.DemoApplication for test class com.nisum.epe.demo.DemoApplicationTests
10:18:37.466 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.nisum.epe.demo.DemoApplicationTests]: using defaults.
10:18:37.468 [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.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, org.springframework.test.context.event.EventPublishingTestExecutionListener]
10:18:37.514 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@43db3b75, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@466519b, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@6513de13, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@1360a735, org.springframework.test.context.support.DirtiesContextTestExecutionListener@9fa36bf, org.springframework.test.context.transaction.TransactionalTestExecutionListener@3fa64492, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@443ee633, org.springframework.test.context.event.EventPublishingTestExecutionListener@5271b88e, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@a6633b1, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7e964bb, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@3455150b, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@6b3f7ec7, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@50ff33aa]
10:18:37.522 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@da4e1cb testClass = DemoApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@3ebaf244 testClass = DemoApplicationTests, locations = '{}', classes = '{class com.nisum.epe.demo.DemoApplication}', 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@34d0bfc3, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@13c88e9d, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5c0ed3df, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@5f19d9a5, org.springframework.boot.test.context.SpringBootTestArgs@1], 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].
10:18:37.578 [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}
<testcase name="contextLoads()" classname="com.nisum.epe.demo.DemoApplicationTests" time="0.37"/>
<system-out><![CDATA[12:22:32.403 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
12:22:32.417 [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)]
12:22:32.452 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.nisum.epe.demo.DemoApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
12:22:32.474 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.nisum.epe.demo.DemoApplicationTests], using SpringBootContextLoader
12:22:32.479 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.epe.demo.DemoApplicationTests]: class path resource [com/nisum/epe/demo/DemoApplicationTests-context.xml] does not exist
12:22:32.480 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.nisum.epe.demo.DemoApplicationTests]: class path resource [com/nisum/epe/demo/DemoApplicationTestsContext.groovy] does not exist
12:22:32.481 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.nisum.epe.demo.DemoApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
12:22:32.482 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.nisum.epe.demo.DemoApplicationTests]: DemoApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
12:22:32.553 [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.epe.demo.DemoApplicationTests]
12:22:32.646 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [D:\projects\Pocs\demo-project-git-operations\build\classes\java\main\com\nisum\epe\demo\DemoApplication.class]
12:22:32.647 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.nisum.epe.demo.DemoApplication for test class com.nisum.epe.demo.DemoApplicationTests
12:22:32.790 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.nisum.epe.demo.DemoApplicationTests]: using defaults.
12:22:32.792 [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.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, org.springframework.test.context.event.EventPublishingTestExecutionListener]
12:22:32.812 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@543e4222, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@5a11a80f, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@4520fb93, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@78dcc200, org.springframework.test.context.support.DirtiesContextTestExecutionListener@5e55a06b, org.springframework.test.context.transaction.TransactionalTestExecutionListener@9d32a7e, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@4b6da4b4, org.springframework.test.context.event.EventPublishingTestExecutionListener@55bfb31b, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@261a073f, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@368a5958, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@10641339, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@386b4d45, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@4ebe8688]
12:22:32.817 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@589bac1a testClass = DemoApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@59f04050 testClass = DemoApplicationTests, locations = '{}', classes = '{class com.nisum.epe.demo.DemoApplication}', 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@44727704, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@4079686c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@3a14be3b, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@21e96e7e, org.springframework.boot.test.context.SpringBootTestArgs@1], 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].
12:22:32.850 [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}
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
......@@ -27,21 +27,21 @@
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.7.RELEASE)
2020-05-22 10:18:37.975 INFO 7904 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : Starting DemoApplicationTests on HYD-LAP-00393 with PID 7904 (started by nmedarametla in D:\demo-project-git-operations)
2020-05-22 10:18:37.978 INFO 7904 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : No active profile set, falling back to default profiles: default
2020-05-22 10:18:49.132 INFO 7904 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2020-05-22 10:18:49.175 INFO 7904 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 25ms. Found 0 JPA repository interfaces.
2020-05-22 10:18:50.098 INFO 7904 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2020-05-22 10:18:50.434 INFO 7904 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2020-05-22 10:18:50.559 INFO 7904 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2020-05-22 10:18:50.676 INFO 7904 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.15.Final
2020-05-22 10:18:50.955 INFO 7904 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2020-05-22 10:18:51.236 INFO 7904 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2020-05-22 10:18:51.829 INFO 7904 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2020-05-22 10:18:51.848 INFO 7904 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-05-22 10:18:52.268 WARN 7904 --- [ 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
2020-05-22 10:18:52.741 INFO 7904 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-05-22 10:18:53.340 INFO 7904 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : Started DemoApplicationTests in 15.743 seconds (JVM running for 18.628)
2020-05-22 12:22:33.269 INFO 18184 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : Starting DemoApplicationTests on HYD-LAP-00497 with PID 18184 (started by skota in D:\projects\Pocs\demo-project-git-operations)
2020-05-22 12:22:33.271 INFO 18184 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : No active profile set, falling back to default profiles: default
2020-05-22 12:22:34.550 INFO 18184 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2020-05-22 12:22:34.584 INFO 18184 --- [ Test worker] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 22ms. Found 0 JPA repository interfaces.
2020-05-22 12:22:35.275 INFO 18184 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2020-05-22 12:22:35.556 INFO 18184 --- [ Test worker] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2020-05-22 12:22:35.656 INFO 18184 --- [ Test worker] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2020-05-22 12:22:35.725 INFO 18184 --- [ Test worker] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.4.15.Final
2020-05-22 12:22:35.926 INFO 18184 --- [ Test worker] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2020-05-22 12:22:36.147 INFO 18184 --- [ Test worker] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2020-05-22 12:22:36.730 INFO 18184 --- [ Test worker] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2020-05-22 12:22:36.743 INFO 18184 --- [ Test worker] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-05-22 12:22:37.336 WARN 18184 --- [ 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
2020-05-22 12:22:37.923 INFO 18184 --- [ Test worker] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-05-22 12:22:38.451 INFO 18184 --- [ Test worker] com.nisum.epe.demo.DemoApplicationTests : Started DemoApplicationTests in 5.589 seconds (JVM running for 7.519)
]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
Manifest-Version: 1.0
Main-Class: org.springframework.boot.loader.JarLauncher
Start-Class: com.nisum.epe.demo.DemoApplication
Spring-Boot-Version: 2.2.7.RELEASE
Spring-Boot-Classes: BOOT-INF/classes/
Spring-Boot-Lib: BOOT-INF/lib/
Spring-Boot-Version: 2.2.7.RELEASE
Main-Class: org.springframework.boot.loader.JarLauncher
package com.nisum.epe.demo.srinivas;
public class Employee {
private String empName;
private int empSal;
public Employee(String empName, int empSal) {
this.empName = empName;
this.empSal = empSal;
}
public String getEmpName() {
return empName;
}
public void setEmpName(String empName) {
this.empName = empName;
}
public int getEmpSal() {
return empSal;
}
public void setEmpSal(int empSal) {
this.empSal = empSal;
}
}
package com.nisum.epe.demo.srinivas;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
@RestController
public class Resource {
List<Employee> employees = new ArrayList<>();
@RequestMapping("/saveEmployeeDetails")
public void saveEmployeeDetails(@RequestBody Employee employee) {
System.out.println("Save Employee details");
buildEmployeeDetails().add(employee);
employees.forEach(System.out::println);
System.out.println(employee.toString());
}
@RequestMapping("/getEmployeeDetails")
public void getmployeeDetails(@RequestParam String employeeName) {
System.out.println("Get Employee details");
List<Employee> employeeList = buildEmployeeDetails().stream()
.filter(employee -> employee.getEmpName().equalsIgnoreCase(employeeName))
.collect(Collectors.toList());
employeeList.forEach(System.out::println);
System.out.println(employeeName);
}
private List<Employee> buildEmployeeDetails() {
IntStream.range(1, 100).forEach(
value -> {
employees.add(new Employee("employee" + value, 1000 * value));
}
);
return employees;
}
}
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