· 6 years ago · Nov 15, 2019, 12:14 AM
1 java-10 git:(master) ✗ codenation test -c java-10
2Versão: 1.0.13
3
4Usando arquivo de configuração: /Users/daniel/.codenation.yml
5[INFO] Scanning for projects...
6[INFO]
7[INFO] -------------------< com.challenge:spring-data-ddl >--------------------
8[INFO] Building spring-data-ddl 0.0.1-SNAPSHOT
9[INFO] --------------------------------[ jar ]---------------------------------
10[INFO]
11[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ spring-data-ddl ---
12[INFO] Using 'UTF-8' encoding to copy filtered resources.
13[INFO] Copying 1 resource
14[INFO] Copying 0 resource
15[INFO]
16[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ spring-data-ddl ---
17[INFO] Nothing to compile - all classes are up to date
18[INFO]
19[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ spring-data-ddl ---
20[INFO] Using 'UTF-8' encoding to copy filtered resources.
21[INFO] Copying 0 resource
22[INFO]
23[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ spring-data-ddl ---
24[INFO] Nothing to compile - all classes are up to date
25[INFO]
26[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ spring-data-ddl ---
27[INFO]
28[INFO] -------------------------------------------------------
29[INFO] T E S T S
30[INFO] -------------------------------------------------------
31[INFO] Running com.challenge.SpringDmlApplicationTests
3222:07:55.157 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class com.challenge.SpringDmlApplicationTests]
3322:07:55.163 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
3422:07:55.172 [main] 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)]
3522:07:55.194 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.challenge.SpringDmlApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
3622:07:55.207 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.challenge.SpringDmlApplicationTests], using SpringBootContextLoader
3722:07:55.212 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.challenge.SpringDmlApplicationTests]: class path resource [com/challenge/SpringDmlApplicationTests-context.xml] does not exist
3822:07:55.213 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.challenge.SpringDmlApplicationTests]: class path resource [com/challenge/SpringDmlApplicationTestsContext.groovy] does not exist
3922:07:55.213 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.challenge.SpringDmlApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
4022:07:55.214 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.challenge.SpringDmlApplicationTests]: SpringDmlApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
4122:07:55.267 [main] 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.challenge.SpringDmlApplicationTests]
4222:07:55.371 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/daniel/codenation/java-10/target/classes/com/challenge/SpringChallengeApplication.class]
4322:07:55.372 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.challenge.SpringChallengeApplication for test class com.challenge.SpringDmlApplicationTests
4422:07:55.472 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.challenge.SpringDmlApplicationTests]: using defaults.
4522:07:55.473 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, 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.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]
4622:07:55.485 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [javax/servlet/ServletContext]
4722:07:55.495 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@4facf68f, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@76508ed1, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@41e36e46, org.springframework.test.context.support.DirtiesContextTestExecutionListener@15c43bd9, org.springframework.test.context.transaction.TransactionalTestExecutionListener@3d74bf60, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@4f209819, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@15eb5ee5, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@2145b572, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@39529185, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@72f926e6, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@3daa422a]
4822:07:55.497 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.challenge.SpringDmlApplicationTests]
4922:07:55.498 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.challenge.SpringDmlApplicationTests]
5022:07:55.500 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.challenge.SpringDmlApplicationTests]
5122:07:55.501 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.challenge.SpringDmlApplicationTests]
5222:07:55.502 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.challenge.SpringDmlApplicationTests]
5322:07:55.502 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.challenge.SpringDmlApplicationTests]
5422:07:55.507 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@56620197 testClass = SpringDmlApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@6eda5c9 testClass = SpringDmlApplicationTests, locations = '{}', classes = '{class com.challenge.SpringChallengeApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@d44fc21, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4e7dc304, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@59e5ddf, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@17d677df], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null].
5522:07:55.508 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.challenge.SpringDmlApplicationTests]
5622:07:55.508 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.challenge.SpringDmlApplicationTests]
5722:07:55.517 [main] DEBUG org.springframework.test.context.support.DependencyInjectionTestExecutionListener - Performing dependency injection for test context [[DefaultTestContext@56620197 testClass = SpringDmlApplicationTests, testInstance = com.challenge.SpringDmlApplicationTests@42e99e4a, testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@6eda5c9 testClass = SpringDmlApplicationTests, locations = '{}', classes = '{class com.challenge.SpringChallengeApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@d44fc21, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@4e7dc304, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@59e5ddf, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@17d677df], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]]].
5822:07:55.545 [main] 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}
59
60 . ____ _ __ _ _
61 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
62( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
63 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
64 ' |____| .__|_| |_|_| |_\__, | / / / /
65 =========|_|==============|___/=/_/_/_/
66 :: Spring Boot :: (v2.1.6.RELEASE)
67
682019-11-14 22:08:10.800 INFO 9830 --- [ main] com.challenge.SpringDmlApplicationTests : Starting SpringDmlApplicationTests on MacBook-Pro-de-Daniel.local with PID 9830 (started by daniel in /Users/daniel/codenation/java-10)
692019-11-14 22:08:10.802 INFO 9830 --- [ main] com.challenge.SpringDmlApplicationTests : No active profile set, falling back to default profiles: default
702019-11-14 22:08:11.214 INFO 9830 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
712019-11-14 22:08:11.336 INFO 9830 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 114ms. Found 6 repository interfaces.
722019-11-14 22:08:11.982 INFO 9830 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
732019-11-14 22:08:12.172 INFO 9830 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
742019-11-14 22:08:12.294 INFO 9830 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
75 name: default
76 ...]
772019-11-14 22:08:12.369 INFO 9830 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.10.Final}
782019-11-14 22:08:12.370 INFO 9830 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
792019-11-14 22:08:12.543 INFO 9830 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
802019-11-14 22:08:12.693 INFO 9830 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
81Hibernate: drop table acceleration if exists
82Hibernate: drop table candidate if exists
83Hibernate: drop table challenge if exists
84Hibernate: drop table company if exists
85Hibernate: drop table submission if exists
86Hibernate: drop table users if exists
87Hibernate: create table acceleration (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), challenge_id bigint, primary key (id))
88Hibernate: create table candidate (created_at timestamp, status integer, user_id bigint not null, company_id bigint not null, acceleration_id bigint not null, primary key (acceleration_id, company_id, user_id))
89Hibernate: create table challenge (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), primary key (id))
90Hibernate: create table company (id bigint generated by default as identity, created_at timestamp, name varchar(255), slug varchar(255), primary key (id))
91Hibernate: create table submission (created_at timestamp, score float, user_id bigint not null, challenge_id bigint not null, primary key (challenge_id, user_id))
92Hibernate: create table users (id bigint generated by default as identity, created_at timestamp, email varchar(255), full_name varchar(255), nickname varchar(255), password varchar(255), primary key (id))
93Hibernate: alter table acceleration add constraint FK6bucejmky2hqhcmj6vexf9tkp foreign key (challenge_id) references challenge
94Hibernate: alter table candidate add constraint FKc23nbdgfce6rnt56ofltvxu71 foreign key (user_id) references users
95Hibernate: alter table candidate add constraint FK5859evebv1forwxno1dj2x73m foreign key (company_id) references company
96Hibernate: alter table candidate add constraint FK9wdl31wkstau7n5wckm5prkdg foreign key (acceleration_id) references acceleration
97Hibernate: alter table submission add constraint FKioe5xddu66v3aktrkyxj4vfx9 foreign key (user_id) references users
98Hibernate: alter table submission add constraint FK5w6mihcq53t1j5x2cmgy640cm foreign key (challenge_id) references challenge
992019-11-14 22:08:13.648 INFO 9830 --- [ main] o.h.t.schema.internal.SchemaCreatorImpl : HHH000476: Executing import script 'org.hibernate.tool.schema.internal.exec.ScriptSourceInputNonExistentImpl@570ba13'
1002019-11-14 22:08:13.652 INFO 9830 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
1012019-11-14 22:08:14.243 INFO 9830 --- [ main] o.h.h.i.QueryTranslatorFactoryInitiator : HHH000397: Using ASTQueryTranslatorFactory
1022019-11-14 22:08:14.543 INFO 9830 --- [ main] com.challenge.SpringDmlApplicationTests : Started SpringDmlApplicationTests in 18.996 seconds (JVM running for 19.801)
103[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.587 s - in com.challenge.SpringDmlApplicationTests
104[INFO] Running com.challenge.SpringChallengeApplicationTests
1052019-11-14 22:08:14.603 INFO 9830 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.challenge.SpringChallengeApplicationTests], using SpringBootContextLoader
1062019-11-14 22:08:14.603 INFO 9830 --- [ main] o.s.t.c.support.AbstractContextLoader : Could not detect default resource locations for test class [com.challenge.SpringChallengeApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}.
1072019-11-14 22:08:14.604 INFO 9830 --- [ main] t.c.s.AnnotationConfigContextLoaderUtils : Could not detect default configuration classes for test class [com.challenge.SpringChallengeApplicationTests]: SpringChallengeApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
1082019-11-14 22:08:14.605 INFO 9830 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Found @SpringBootConfiguration com.challenge.SpringChallengeApplication for test class com.challenge.SpringChallengeApplicationTests
1092019-11-14 22:08:14.607 INFO 9830 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, 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.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]
1102019-11-14 22:08:14.609 INFO 9830 --- [ main] .b.t.c.SpringBootTestContextBootstrapper : Using TestExecutionListeners: [org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@1c74d19, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@24197b13, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@71b97eeb, org.springframework.test.context.support.DirtiesContextTestExecutionListener@2776fd8f, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1c62c3fd, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@734ce281, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@49b89425, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@59328218, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@5345dfe8, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@478967eb, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@4a1dda83]
111[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 s - in com.challenge.SpringChallengeApplicationTests
1122019-11-14 22:08:14.766 INFO 9830 --- [ Thread-3] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
1132019-11-14 22:08:14.767 INFO 9830 --- [ Thread-3] .SchemaDropperImpl$DelayedDropActionImpl : HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
114Hibernate: drop table acceleration if exists
115Hibernate: drop table candidate if exists
116Hibernate: drop table challenge if exists
117Hibernate: drop table company if exists
118Hibernate: drop table submission if exists
119Hibernate: drop table users if exists
1202019-11-14 22:08:14.776 INFO 9830 --- [ Thread-3] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
1212019-11-14 22:08:14.780 INFO 9830 --- [ Thread-3] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
122[INFO]
123[INFO] Results:
124[INFO]
125[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
126[INFO]
127[INFO] ------------------------------------------------------------------------
128[INFO] BUILD SUCCESS
129[INFO] ------------------------------------------------------------------------
130[INFO] Total time: 27.384 s
131[INFO] Finished at: 2019-11-14T22:08:15-02:00
132[INFO] ------------------------------------------------------------------------
133
134Parabéns! Você já pode começar a resolver o desafio. Boa sorte!
135➜ java-10 git:(master) ✗