· 5 years ago · Mar 13, 2020, 12:56 PM
1/usr/lib/jvm/java-11-oracle/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/snap/intellij-idea-ultimate/204/lib/idea_rt.jar=45709:/snap/intellij-idea-ultimate/204/bin -Dfile.encoding=UTF-8 -classpath /snap/intellij-idea-ultimate/204/lib/idea_rt.jar:/snap/intellij-idea-ultimate/204/plugins/junit/lib/junit5-rt.jar:/snap/intellij-idea-ultimate/204/plugins/junit/lib/junit-rt.jar:/home/joao/ES/es20tg_41-project/backend/target/test-classes:/home/joao/ES/es20tg_41-project/backend/target/classes:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter/2.2.2.RELEASE/spring-boot-starter-2.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot/2.2.2.RELEASE/spring-boot-2.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/spring-context/5.2.2.RELEASE/spring-context-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.2.2.RELEASE/spring-boot-autoconfigure-2.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.2.2.RELEASE/spring-boot-starter-logging-2.2.2.RELEASE.jar:/home/joao/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/home/joao/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/home/joao/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.12.1/log4j-to-slf4j-2.12.1.jar:/home/joao/.m2/repository/org/apache/logging/log4j/log4j-api/2.12.1/log4j-api-2.12.1.jar:/home/joao/.m2/repository/org/slf4j/jul-to-slf4j/1.7.29/jul-to-slf4j-1.7.29.jar:/home/joao/.m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar:/home/joao/.m2/repository/org/springframework/spring-core/5.2.2.RELEASE/spring-core-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/spring-jcl/5.2.2.RELEASE/spring-jcl-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/yaml/snakeyaml/1.25/snakeyaml-1.25.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa/2.2.2.RELEASE/spring-boot-starter-data-jpa-2.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-aop/2.2.2.RELEASE/spring-boot-starter-aop-2.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/2.2.2.RELEASE/spring-boot-starter-jdbc-2.2.2.RELEASE.jar:/home/joao/.m2/repository/com/zaxxer/HikariCP/3.4.1/HikariCP-3.4.1.jar:/home/joao/.m2/repository/org/springframework/spring-jdbc/5.2.2.RELEASE/spring-jdbc-5.2.2.RELEASE.jar:/home/joao/.m2/repository/jakarta/activation/jakarta.activation-api/1.2.1/jakarta.activation-api-1.2.1.jar:/home/joao/.m2/repository/jakarta/persistence/jakarta.persistence-api/2.2.3/jakarta.persistence-api-2.2.3.jar:/home/joao/.m2/repository/jakarta/transaction/jakarta.transaction-api/1.3.3/jakarta.transaction-api-1.3.3.jar:/home/joao/.m2/repository/org/hibernate/hibernate-core/5.4.9.Final/hibernate-core-5.4.9.Final.jar:/home/joao/.m2/repository/org/jboss/logging/jboss-logging/3.4.1.Final/jboss-logging-3.4.1.Final.jar:/home/joao/.m2/repository/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar:/home/joao/.m2/repository/net/bytebuddy/byte-buddy/1.10.4/byte-buddy-1.10.4.jar:/home/joao/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/home/joao/.m2/repository/org/jboss/jandex/2.1.1.Final/jandex-2.1.1.Final.jar:/home/joao/.m2/repository/org/dom4j/dom4j/2.1.1/dom4j-2.1.1.jar:/home/joao/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.1.0.Final/hibernate-commons-annotations-5.1.0.Final.jar:/home/joao/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.2/jaxb-runtime-2.3.2.jar:/home/joao/.m2/repository/org/glassfish/jaxb/txw2/2.3.2/txw2-2.3.2.jar:/home/joao/.m2/repository/com/sun/istack/istack-commons-runtime/3.0.8/istack-commons-runtime-3.0.8.jar:/home/joao/.m2/repository/org/jvnet/staxex/stax-ex/1.8.1/stax-ex-1.8.1.jar:/home/joao/.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.16/FastInfoset-1.2.16.jar:/home/joao/.m2/repository/org/springframework/data/spring-data-jpa/2.2.3.RELEASE/spring-data-jpa-2.2.3.RELEASE.jar:/home/joao/.m2/repository/org/springframework/data/spring-data-commons/2.2.3.RELEASE/spring-data-commons-2.2.3.RELEASE.jar:/home/joao/.m2/repository/org/springframework/spring-tx/5.2.2.RELEASE/spring-tx-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/spring-beans/5.2.2.RELEASE/spring-beans-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.2.4.RELEASE/spring-boot-starter-web-2.2.4.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.2.2.RELEASE/spring-boot-starter-json-2.2.2.RELEASE.jar:/home/joao/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.10.1/jackson-datatype-jdk8-2.10.1.jar:/home/joao/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.10.1/jackson-datatype-jsr310-2.10.1.jar:/home/joao/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.10.1/jackson-module-parameter-names-2.10.1.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.2.2.RELEASE/spring-boot-starter-tomcat-2.2.2.RELEASE.jar:/home/joao/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.29/tomcat-embed-core-9.0.29.jar:/home/joao/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/9.0.29/tomcat-embed-el-9.0.29.jar:/home/joao/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/9.0.29/tomcat-embed-websocket-9.0.29.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-validation/2.2.2.RELEASE/spring-boot-starter-validation-2.2.2.RELEASE.jar:/home/joao/.m2/repository/jakarta/validation/jakarta.validation-api/2.0.1/jakarta.validation-api-2.0.1.jar:/home/joao/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.18.Final/hibernate-validator-6.0.18.Final.jar:/home/joao/.m2/repository/org/springframework/spring-web/5.2.2.RELEASE/spring-web-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/spring-webmvc/5.2.2.RELEASE/spring-webmvc-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/spring-expression/5.2.2.RELEASE/spring-expression-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-test/2.2.2.RELEASE/spring-boot-starter-test-2.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-test/2.2.2.RELEASE/spring-boot-test-2.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-test-autoconfigure/2.2.2.RELEASE/spring-boot-test-autoconfigure-2.2.2.RELEASE.jar:/home/joao/.m2/repository/com/jayway/jsonpath/json-path/2.4.0/json-path-2.4.0.jar:/home/joao/.m2/repository/net/minidev/json-smart/2.3/json-smart-2.3.jar:/home/joao/.m2/repository/net/minidev/accessors-smart/1.2/accessors-smart-1.2.jar:/home/joao/.m2/repository/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/home/joao/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar:/home/joao/.m2/repository/org/junit/jupiter/junit-jupiter/5.5.2/junit-jupiter-5.5.2.jar:/home/joao/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.5.2/junit-jupiter-api-5.5.2.jar:/home/joao/.m2/repository/org/opentest4j/opentest4j/1.2.0/opentest4j-1.2.0.jar:/home/joao/.m2/repository/org/junit/platform/junit-platform-commons/1.5.2/junit-platform-commons-1.5.2.jar:/home/joao/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.5.2/junit-jupiter-params-5.5.2.jar:/home/joao/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.5.2/junit-jupiter-engine-5.5.2.jar:/home/joao/.m2/repository/org/junit/vintage/junit-vintage-engine/5.5.2/junit-vintage-engine-5.5.2.jar:/home/joao/.m2/repository/org/apiguardian/apiguardian-api/1.1.0/apiguardian-api-1.1.0.jar:/home/joao/.m2/repository/org/junit/platform/junit-platform-engine/1.5.2/junit-platform-engine-1.5.2.jar:/home/joao/.m2/repository/org/mockito/mockito-junit-jupiter/3.1.0/mockito-junit-jupiter-3.1.0.jar:/home/joao/.m2/repository/org/assertj/assertj-core/3.13.2/assertj-core-3.13.2.jar:/home/joao/.m2/repository/org/hamcrest/hamcrest/2.1/hamcrest-2.1.jar:/home/joao/.m2/repository/org/mockito/mockito-core/3.1.0/mockito-core-3.1.0.jar:/home/joao/.m2/repository/net/bytebuddy/byte-buddy-agent/1.10.4/byte-buddy-agent-1.10.4.jar:/home/joao/.m2/repository/org/skyscreamer/jsonassert/1.5.0/jsonassert-1.5.0.jar:/home/joao/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar:/home/joao/.m2/repository/org/springframework/spring-test/5.2.2.RELEASE/spring-test-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/xmlunit/xmlunit-core/2.6.3/xmlunit-core-2.6.3.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-devtools/2.2.2.RELEASE/spring-boot-devtools-2.2.2.RELEASE.jar:/home/joao/.m2/repository/javax/xml/bind/jaxb-api/2.4.0-b180830.0359/jaxb-api-2.4.0-b180830.0359.jar:/home/joao/.m2/repository/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-configuration-processor/2.2.2.RELEASE/spring-boot-configuration-processor-2.2.2.RELEASE.jar:/home/joao/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.10.2/jackson-databind-2.10.2.jar:/home/joao/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.10.1/jackson-annotations-2.10.1.jar:/home/joao/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.10.1/jackson-core-2.10.1.jar:/home/joao/.m2/repository/org/springframework/boot/spring-boot-starter-security/2.2.2.RELEASE/spring-boot-starter-security-2.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/spring-aop/5.2.2.RELEASE/spring-aop-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/springframework/security/spring-security-config/5.2.1.RELEASE/spring-security-config-5.2.1.RELEASE.jar:/home/joao/.m2/repository/org/springframework/security/spring-security-web/5.2.1.RELEASE/spring-security-web-5.2.1.RELEASE.jar:/home/joao/.m2/repository/org/springframework/security/spring-security-test/5.2.1.RELEASE/spring-security-test-5.2.1.RELEASE.jar:/home/joao/.m2/repository/org/springframework/security/spring-security-core/5.2.1.RELEASE/spring-security-core-5.2.1.RELEASE.jar:/home/joao/.m2/repository/org/postgresql/postgresql/42.2.8/postgresql-42.2.8.jar:/home/joao/.m2/repository/com/h2database/h2/1.4.200/h2-1.4.200.jar:/home/joao/.m2/repository/io/springfox/springfox-swagger2/2.9.2/springfox-swagger2-2.9.2.jar:/home/joao/.m2/repository/io/swagger/swagger-annotations/1.5.20/swagger-annotations-1.5.20.jar:/home/joao/.m2/repository/io/swagger/swagger-models/1.5.20/swagger-models-1.5.20.jar:/home/joao/.m2/repository/io/springfox/springfox-spi/2.9.2/springfox-spi-2.9.2.jar:/home/joao/.m2/repository/io/springfox/springfox-core/2.9.2/springfox-core-2.9.2.jar:/home/joao/.m2/repository/io/springfox/springfox-schema/2.9.2/springfox-schema-2.9.2.jar:/home/joao/.m2/repository/io/springfox/springfox-swagger-common/2.9.2/springfox-swagger-common-2.9.2.jar:/home/joao/.m2/repository/io/springfox/springfox-spring-web/2.9.2/springfox-spring-web-2.9.2.jar:/home/joao/.m2/repository/com/google/guava/guava/20.0/guava-20.0.jar:/home/joao/.m2/repository/com/fasterxml/classmate/1.5.1/classmate-1.5.1.jar:/home/joao/.m2/repository/org/slf4j/slf4j-api/1.7.29/slf4j-api-1.7.29.jar:/home/joao/.m2/repository/org/springframework/plugin/spring-plugin-core/1.2.0.RELEASE/spring-plugin-core-1.2.0.RELEASE.jar:/home/joao/.m2/repository/org/springframework/plugin/spring-plugin-metadata/1.2.0.RELEASE/spring-plugin-metadata-1.2.0.RELEASE.jar:/home/joao/.m2/repository/org/mapstruct/mapstruct/1.2.0.Final/mapstruct-1.2.0.Final.jar:/home/joao/.m2/repository/io/springfox/springfox-swagger-ui/2.9.2/springfox-swagger-ui-2.9.2.jar:/home/joao/.m2/repository/org/fenixedu/feaf4j-api/2.3.1/feaf4j-api-2.3.1.jar:/home/joao/.m2/repository/com/google/code/gson/gson/2.8.6/gson-2.8.6.jar:/home/joao/.m2/repository/org/fenixedu/feaf4j-okhttp/2.3.1/feaf4j-okhttp-2.3.1.jar:/home/joao/.m2/repository/com/squareup/okhttp/okhttp/2.2.0/okhttp-2.2.0.jar:/home/joao/.m2/repository/com/squareup/okio/okio/1.2.0/okio-1.2.0.jar:/home/joao/.m2/repository/org/springframework/retry/spring-retry/1.2.5.RELEASE/spring-retry-1.2.5.RELEASE.jar:/home/joao/.m2/repository/org/springframework/spring-aspects/5.2.2.RELEASE/spring-aspects-5.2.2.RELEASE.jar:/home/joao/.m2/repository/org/aspectj/aspectjweaver/1.9.5/aspectjweaver-1.9.5.jar:/home/joao/.m2/repository/org/springframework/spring-orm/5.2.2.RELEASE/spring-orm-5.2.2.RELEASE.jar:/home/joao/.m2/repository/io/jsonwebtoken/jjwt-api/0.11.0/jjwt-api-0.11.0.jar:/home/joao/.m2/repository/io/jsonwebtoken/jjwt-impl/0.11.0/jjwt-impl-0.11.0.jar:/home/joao/.m2/repository/io/jsonwebtoken/jjwt-jackson/0.11.0/jjwt-jackson-0.11.0.jar:/home/joao/.m2/repository/jaxen/jaxen/1.2.0/jaxen-1.2.0.jar:/home/joao/.m2/repository/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar:/home/joao/.m2/repository/commons-io/commons-io/2.6/commons-io-2.6.jar:/home/joao/.m2/repository/org/spockframework/spock-spring/1.3-groovy-2.5/spock-spring-1.3-groovy-2.5.jar:/home/joao/.m2/repository/org/codehaus/groovy/groovy/2.5.8/groovy-2.5.8.jar:/home/joao/.m2/repository/org/codehaus/groovy/groovy-json/2.5.8/groovy-json-2.5.8.jar:/home/joao/.m2/repository/org/codehaus/groovy/groovy-nio/2.5.8/groovy-nio-2.5.8.jar:/home/joao/.m2/repository/org/codehaus/groovy/groovy-macro/2.5.8/groovy-macro-2.5.8.jar:/home/joao/.m2/repository/org/codehaus/groovy/groovy-templates/2.5.8/groovy-templates-2.5.8.jar:/home/joao/.m2/repository/org/codehaus/groovy/groovy-test/2.5.8/groovy-test-2.5.8.jar:/home/joao/.m2/repository/org/codehaus/groovy/groovy-sql/2.5.8/groovy-sql-2.5.8.jar:/home/joao/.m2/repository/org/codehaus/groovy/groovy-xml/2.5.8/groovy-xml-2.5.8.jar:/home/joao/.m2/repository/org/spockframework/spock-core/1.3-groovy-2.5/spock-core-1.3-groovy-2.5.jar:/home/joao/.m2/repository/junit/junit/4.12/junit-4.12.jar:/home/joao/.m2/repository/org/hamcrest/hamcrest-core/2.1/hamcrest-core-2.1.jar:/home/joao/.m2/repository/org/codehaus/groovy/groovy-all/2.4.15/groovy-all-2.4.15.jar:/home/joao/.m2/repository/org/objenesis/objenesis/2.6/objenesis-2.6.jar com.intellij.rt.junit.JUnitStarter -ideVersion5 -junit4 pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest
212:41:58.451 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
312:41:58.460 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
412:41:58.461 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
512:41:58.469 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
612:41:58.477 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
712:41:58.477 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
812:41:58.477 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
912:41:58.477 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
1012:41:58.478 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
1112:41:58.478 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
1212:41:58.478 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
1312:41:58.478 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
1412:41:58.479 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
1512:41:58.479 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
1612:41:58.483 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
1712:41:58.493 [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)]
1812:41:58.503 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest] from class [org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper]
1912:41:58.518 [main] INFO org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest], using SpringBootContextLoader
2012:41:58.525 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]: class path resource [pt/ulisboa/tecnico/socialsoftware/tutor/studentQuestion/service/CreateQuestionEvaluationTest-context.xml] does not exist
2112:41:58.526 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]: class path resource [pt/ulisboa/tecnico/socialsoftware/tutor/studentQuestion/service/CreateQuestionEvaluationTestContext.groovy] does not exist
2212:41:58.526 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]: no resource found for suffixes {-context.xml, Context.groovy}.
2312:41:58.667 [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 [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]
2412:41:58.820 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/home/joao/ES/es20tg_41-project/backend/target/classes/pt/ulisboa/tecnico/socialsoftware/tutor/TutorApplication.class]
2512:41:58.823 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication for test class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest
2612:41:58.826 [main] DEBUG org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper - @TestExecutionListeners is not present for class [pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest]: using defaults.
2712:41:58.835 [main] INFO org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper - 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, org.springframework.test.context.event.EventPublishingTestExecutionListener, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener, org.springframework.security.test.context.support.ReactorContextTestExecutionListener, org.spockframework.spring.SpringMockTestExecutionListener]
2812:41:58.898 [main] INFO org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@3ddc6915, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@704deff2, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@379614be, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@404bbcbd, org.springframework.test.context.support.DirtiesContextTestExecutionListener@1e81f160, org.springframework.test.context.transaction.TransactionalTestExecutionListener@1acaf3d, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@6986852, org.springframework.test.context.event.EventPublishingTestExecutionListener@1bab8268, org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener@a307a8c, org.springframework.security.test.context.support.ReactorContextTestExecutionListener@6e01f9b0, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@2b9ed6da, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@6c61a903, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@658c5a19, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@421e361, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@59d4cd39, org.spockframework.spring.SpringMockTestExecutionListener@389c4eb1]
2912:41:58.966 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null].
30WARNING: An illegal reflective access operation has occurred
31WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/joao/.m2/repository/org/codehaus/groovy/groovy/2.5.8/groovy-2.5.8.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
32WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
33WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
34WARNING: All illegal access operations will be denied in a future release
3512:41:59.629 [main] DEBUG org.springframework.test.context.support.DependencyInjectionTestExecutionListener - Performing dependency injection for test context [[DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@5b800468, testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]]].
3612:41:59.816 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true, server.port=-1}
37
38 . ____ _ __ _ _
39 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
40( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
41 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
42 ' |____| .__|_| |_|_| |_\__, | / / / /
43 =========|_|==============|___/=/_/_/_/
44 :: Spring Boot :: (v2.2.2.RELEASE)
45
462020-03-13 12:42:00.319 INFO 7248 --- [ main] u.t.s.t.s.s.CreateQuestionEvaluationTest : Starting CreateQuestionEvaluationTest on Spectre with PID 7248 (started by joao in /home/joao/ES/es20tg_41-project/backend)
472020-03-13 12:42:00.320 INFO 7248 --- [ main] u.t.s.t.s.s.CreateQuestionEvaluationTest : The following profiles are active: test
482020-03-13 12:42:01.030 INFO 7248 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
492020-03-13 12:42:01.279 INFO 7248 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 238ms. Found 15 JPA repository interfaces.
502020-03-13 12:42:01.431 INFO 7248 --- [ main] beddedDataSourceBeanFactoryPostProcessor : Replacing 'dataSource' DataSource bean with embedded version
512020-03-13 12:42:01.825 INFO 7248 --- [ main] o.s.j.d.e.EmbeddedDatabaseFactory : Starting embedded database: url='jdbc:h2:mem:e647dbdb-3b7a-47b8-b085-07756c6bee29;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false', username='sa'
522020-03-13 12:42:02.305 INFO 7248 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
532020-03-13 12:42:02.393 INFO 7248 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.4.9.Final}
542020-03-13 12:42:02.564 INFO 7248 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
552020-03-13 12:42:02.711 INFO 7248 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
56Hibernate: create table assessments (id integer generated by default as identity, sequence integer, status varchar(255), title varchar(255), course_execution_id integer, primary key (id))
57Hibernate: create table course_executions (id integer generated by default as identity, academic_term varchar(255), acronym varchar(255), status varchar(255), type varchar(255), course_id integer, primary key (id))
58Hibernate: create table courses (id integer generated by default as identity, name varchar(255), type varchar(255), primary key (id))
59Hibernate: create table images (id integer generated by default as identity, url varchar(255), width integer, question_id integer, primary key (id))
60Hibernate: create table options (id integer generated by default as identity, content TEXT, correct boolean default false, sequence integer, question_id integer, primary key (id))
61Hibernate: create table question_answers (id integer generated by default as identity, sequence integer, time_taken integer, option_id integer, quiz_answer_id integer, quiz_question_id integer, primary key (id))
62Hibernate: create table question_evaluation (id integer generated by default as identity, approved boolean not null, justification varchar(255), student_question_id integer, teacher_id integer, primary key (id))
63Hibernate: create table questions (id integer generated by default as identity, content TEXT, creation_date timestamp, key integer not null, number_of_answers integer default 0, number_of_correct integer default 0, status varchar(255), title varchar(255), course_id integer, primary key (id))
64Hibernate: create table quiz_answers (id integer generated by default as identity, answer_date timestamp, completed boolean not null, creation_date timestamp, used_in_statistics boolean default false, quiz_id integer, user_id integer, primary key (id))
65Hibernate: create table quiz_questions (id integer generated by default as identity, sequence integer, question_id integer, quiz_id integer, primary key (id))
66Hibernate: create table quizzes (id integer generated by default as identity, available_date timestamp, conclusion_date timestamp, creation_date timestamp, key integer not null, scramble boolean default false, series integer, title varchar(255) not null, type varchar(255), version varchar(255), course_execution_id integer, primary key (id))
67Hibernate: create table student_question (id integer generated by default as identity, question_id integer, user_id integer, primary key (id))
68Hibernate: create table student_question_question_evaluations (student_question_id integer not null, question_evaluations_id integer not null, primary key (student_question_id, question_evaluations_id))
69Hibernate: create table topic_conjunctions (id integer generated by default as identity, assessment_id integer, primary key (id))
70Hibernate: create table topics (id integer generated by default as identity, name varchar(255), course_id integer, parent_topic_id integer, primary key (id))
71Hibernate: create table topics_questions (topics_id integer not null, questions_id integer not null, primary key (topics_id, questions_id))
72Hibernate: create table topics_topic_conjunctions (topics_id integer not null, topic_conjunctions_id integer not null)
73Hibernate: create table users (id integer generated by default as identity, creation_date timestamp, enrolled_courses_acronyms varchar(255), key integer not null, last_access timestamp, name varchar(255), number_of_correct_in_class_answers integer, number_of_correct_student_answers integer, number_of_correct_teacher_answers integer, number_of_in_class_answers integer, number_of_in_class_quizzes integer, number_of_student_answers integer, number_of_student_quizzes integer, number_of_teacher_answers integer, number_of_teacher_quizzes integer, role varchar(255), username varchar(255), primary key (id))
74Hibernate: create table users_course_executions (users_id integer not null, course_executions_id integer not null, primary key (users_id, course_executions_id))
75Hibernate: create table users_question_evaluations (user_id integer not null, question_evaluations_id integer not null, primary key (user_id, question_evaluations_id))
76Hibernate: create table users_student_questions (user_id integer not null, student_questions_id integer not null, primary key (user_id, student_questions_id))
77Hibernate: create index question_indx_0 on questions (key)
78Hibernate: alter table questions drop constraint if exists UK_o7ddpilrhf9pto1ghdh1yjyih
79Hibernate: alter table questions add constraint UK_o7ddpilrhf9pto1ghdh1yjyih unique (key)
80Hibernate: create index quizzes_indx_0 on quizzes (key)
81Hibernate: alter table quizzes drop constraint if exists UK_nsto94nhuj3mq8iyqtla6fa1v
82Hibernate: alter table quizzes add constraint UK_nsto94nhuj3mq8iyqtla6fa1v unique (key)
83Hibernate: alter table student_question_question_evaluations drop constraint if exists UK_s17iwew9dqpopeart5fbx81y0
84Hibernate: alter table student_question_question_evaluations add constraint UK_s17iwew9dqpopeart5fbx81y0 unique (question_evaluations_id)
85Hibernate: alter table users drop constraint if exists UK_2o0g48ff3u7ql7g3adqjb5ix4
86Hibernate: alter table users add constraint UK_2o0g48ff3u7ql7g3adqjb5ix4 unique (key)
87Hibernate: alter table users drop constraint if exists UK_r43af9ap4edm43mmtq01oddj6
88Hibernate: alter table users add constraint UK_r43af9ap4edm43mmtq01oddj6 unique (username)
89Hibernate: alter table users_question_evaluations drop constraint if exists UK_1cr788o7kktag4ag12wubh5mk
90Hibernate: alter table users_question_evaluations add constraint UK_1cr788o7kktag4ag12wubh5mk unique (question_evaluations_id)
91Hibernate: alter table users_student_questions drop constraint if exists UK_ab9ddr9bdnjo5bht09axaafhd
92Hibernate: alter table users_student_questions add constraint UK_ab9ddr9bdnjo5bht09axaafhd unique (student_questions_id)
93Hibernate: alter table assessments add constraint FK9l06agsr3c75fewmve7t2tc43 foreign key (course_execution_id) references course_executions
94Hibernate: alter table course_executions add constraint FKimcvi45c7kssp8vygn0diid7u foreign key (course_id) references courses
95Hibernate: alter table images add constraint FK37qs4lwbc8u9pmjhtuxp0d264 foreign key (question_id) references questions
96Hibernate: alter table options add constraint FK5bmv46so2y5igt9o9n9w4fh6y foreign key (question_id) references questions
97Hibernate: alter table question_answers add constraint FKdg6xjp7x8wn0pd8vctlqll5ok foreign key (option_id) references options
98Hibernate: alter table question_answers add constraint FKamgy9t1s8asrsl00l5p8lold4 foreign key (quiz_answer_id) references quiz_answers
99Hibernate: alter table question_answers add constraint FKjy80p5uktr31ehg8d5v53nfq2 foreign key (quiz_question_id) references quiz_questions
100Hibernate: alter table question_evaluation add constraint FKga2n2serpkv8thei8pwlxqaf3 foreign key (student_question_id) references student_question
101Hibernate: alter table question_evaluation add constraint FKkblc8irhn58bq8rtjwdb8o50s foreign key (teacher_id) references users
102Hibernate: alter table questions add constraint FK6y78pbrt5dxp12ljsa8r1ey82 foreign key (course_id) references courses
103Hibernate: alter table quiz_answers add constraint FK8m696ke2wtle7jrw9fp3ey2yt foreign key (quiz_id) references quizzes
104Hibernate: alter table quiz_answers add constraint FKcqyj36ibcadfva2rc6psle7u1 foreign key (user_id) references users
105Hibernate: alter table quiz_questions add constraint FKev41c723fx659v28pjycox15o foreign key (question_id) references questions
106Hibernate: alter table quiz_questions add constraint FKanfmgf6ksbdnv7ojb0pfve54q foreign key (quiz_id) references quizzes
107Hibernate: alter table quizzes add constraint FKtjubpqjuw7b2yw4jp7kwstp3l foreign key (course_execution_id) references course_executions
108Hibernate: alter table student_question add constraint FKhxx4ix2p2dae6adk42ygba4j4 foreign key (question_id) references questions
109Hibernate: alter table student_question add constraint FKrtn9y2hgmke3qmsjy2b8j8xao foreign key (user_id) references users
110Hibernate: alter table student_question_question_evaluations add constraint FKh1cgsdxmlxl5uo6kdtro7hpee foreign key (question_evaluations_id) references question_evaluation
111Hibernate: alter table student_question_question_evaluations add constraint FK2qnxbprf5bldelxn1rd2kny73 foreign key (student_question_id) references student_question
112Hibernate: alter table topic_conjunctions add constraint FK1bei0hi20ym6b018f9yr59gya foreign key (assessment_id) references assessments
113Hibernate: alter table topics add constraint FKhn8u5k2hlwgftn6xkk7i2vh1o foreign key (course_id) references courses
114Hibernate: alter table topics add constraint FKpd5mo30erv4abuyhk94iatmcx foreign key (parent_topic_id) references topics
115Hibernate: alter table topics_questions add constraint FK4lsm9y4c8dmvp5b2g5no87om7 foreign key (questions_id) references questions
116Hibernate: alter table topics_questions add constraint FKpv4eapx6jhsr3fnqygajogkyc foreign key (topics_id) references topics
117Hibernate: alter table topics_topic_conjunctions add constraint FKh080rtpwj6cuvoi3wq4avmmw0 foreign key (topic_conjunctions_id) references topic_conjunctions
118Hibernate: alter table topics_topic_conjunctions add constraint FK2p0k3pivqm6btx62cmftv3ktq foreign key (topics_id) references topics
119Hibernate: alter table users_course_executions add constraint FK3nlrx7690x6hfu93fi69gskqg foreign key (course_executions_id) references course_executions
120Hibernate: alter table users_course_executions add constraint FKbio7lec4k721ccqaoqecbr9ko foreign key (users_id) references users
121Hibernate: alter table users_question_evaluations add constraint FKlfoxpc1kheoxiu003s1op848m foreign key (question_evaluations_id) references question_evaluation
122Hibernate: alter table users_question_evaluations add constraint FKgl9cmpyhkxy2703f2bdkvmnd1 foreign key (user_id) references users
123Hibernate: alter table users_student_questions add constraint FKmikhbb31prrdgw6v1rg8gwkta foreign key (student_questions_id) references student_question
124Hibernate: alter table users_student_questions add constraint FKm301egtss9g3gqmcf53kk97yi foreign key (user_id) references users
1252020-03-13 12:42:04.468 INFO 7248 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
1262020-03-13 12:42:04.477 INFO 7248 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
1272020-03-13 12:42:05.939 INFO 7248 --- [ main] u.t.s.t.s.s.CreateQuestionEvaluationTest : Started CreateQuestionEvaluationTest in 6.118 seconds (JVM running for 9.251)
1282020-03-13 12:42:05.978 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@5b800468, testMethod = $spock_feature_0_0@CreateQuestionEvaluationTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@2a7392a3]; rollback [true]
129Hibernate: insert into courses (id, name, type) values (null, ?, ?)
130Hibernate: call identity()
131Hibernate: insert into course_executions (id, academic_term, acronym, course_id, status, type) values (null, ?, ?, ?, ?, ?)
132Hibernate: call identity()
133Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
134Hibernate: call identity()
135Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
136Hibernate: call identity()
137Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
138Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
139Hibernate: select * from users u where u.key = ?
140Hibernate: insert into student_question (id, question_id, user_id) values (null, ?, ?)
141Hibernate: call identity()
142Hibernate: insert into questions (id, content, course_id, creation_date, key, number_of_answers, number_of_correct, status, title) values (null, ?, ?, ?, ?, ?, ?, ?, ?)
143Hibernate: call identity()
144Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
145Hibernate: call identity()
146Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
147Hibernate: call identity()
148Hibernate: update student_question set question_id=?, user_id=? where id=?
149Hibernate: insert into users_student_questions (user_id, student_questions_id) values (?, ?)
150Hibernate: select studentque0_.id as id1_11_, studentque0_.question_id as question2_11_, studentque0_.user_id as user_id3_11_ from student_question studentque0_
151Hibernate: insert into question_evaluation (id, approved, justification, student_question_id, teacher_id) values (null, ?, ?, ?, ?)
152Hibernate: call identity()
153Hibernate: select questionev0_.id as id1_6_, questionev0_.approved as approved2_6_, questionev0_.justification as justific3_6_, questionev0_.student_question_id as student_4_6_, questionev0_.teacher_id as teacher_5_6_ from question_evaluation questionev0_
1542020-03-13 12:42:06.791 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@5b800468, testMethod = $spock_feature_0_0@CreateQuestionEvaluationTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]
1552020-03-13 12:42:06.801 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@7d76d72a, testMethod = $spock_feature_0_1@CreateQuestionEvaluationTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@2a7392a3]; rollback [true]
156Hibernate: insert into courses (id, name, type) values (null, ?, ?)
157Hibernate: call identity()
158Hibernate: insert into course_executions (id, academic_term, acronym, course_id, status, type) values (null, ?, ?, ?, ?, ?)
159Hibernate: call identity()
160Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
161Hibernate: call identity()
162Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
163Hibernate: call identity()
164Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
165Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
166Hibernate: select * from users u where u.key = ?
167Hibernate: insert into student_question (id, question_id, user_id) values (null, ?, ?)
168Hibernate: call identity()
169Hibernate: insert into questions (id, content, course_id, creation_date, key, number_of_answers, number_of_correct, status, title) values (null, ?, ?, ?, ?, ?, ?, ?, ?)
170Hibernate: call identity()
171Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
172Hibernate: call identity()
173Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
174Hibernate: call identity()
175Hibernate: update student_question set question_id=?, user_id=? where id=?
176Hibernate: insert into users_student_questions (user_id, student_questions_id) values (?, ?)
177Hibernate: select studentque0_.id as id1_11_, studentque0_.question_id as question2_11_, studentque0_.user_id as user_id3_11_ from student_question studentque0_
1782020-03-13 12:42:06.866 ERROR 7248 --- [ main] p.u.t.s.tutor.exceptions.TutorException : Student question not found with id 2
1792020-03-13 12:42:06.990 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@7d76d72a, testMethod = $spock_feature_0_1@CreateQuestionEvaluationTest, testException = Condition failed with Exception:
180
181questionEvaluationRepository.size() == 0L
182| |
183| groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
184| Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
185| at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.studentQuestion does not exist(createQuestionEvaluationTest.groovy:160)
186org.springframework.data.jpa.repository.support.SimpleJpaRepository@1f2d0ca2
187, mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]
188
189Condition failed with Exception:
190
191questionEvaluationRepository.size() == 0L
192| |
193| groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
194| Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
195| at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.studentQuestion does not exist(createQuestionEvaluationTest.groovy:160)
196org.springframework.data.jpa.repository.support.SimpleJpaRepository@1f2d0ca2
197
198
199 at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.studentQuestion does not exist(createQuestionEvaluationTest.groovy:160)
200Caused by: groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
201Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
202 ... 1 more
203
2042020-03-13 12:42:07.006 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@59301546, testMethod = $spock_feature_0_2@CreateQuestionEvaluationTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@2a7392a3]; rollback [true]
205Hibernate: insert into courses (id, name, type) values (null, ?, ?)
206Hibernate: call identity()
207Hibernate: insert into course_executions (id, academic_term, acronym, course_id, status, type) values (null, ?, ?, ?, ?, ?)
208Hibernate: call identity()
209Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
210Hibernate: call identity()
211Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
212Hibernate: call identity()
213Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
214Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
215Hibernate: select * from users u where u.key = ?
216Hibernate: insert into student_question (id, question_id, user_id) values (null, ?, ?)
217Hibernate: call identity()
218Hibernate: insert into questions (id, content, course_id, creation_date, key, number_of_answers, number_of_correct, status, title) values (null, ?, ?, ?, ?, ?, ?, ?, ?)
219Hibernate: call identity()
220Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
221Hibernate: call identity()
222Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
223Hibernate: call identity()
224Hibernate: update student_question set question_id=?, user_id=? where id=?
225Hibernate: insert into users_student_questions (user_id, student_questions_id) values (?, ?)
226Hibernate: select studentque0_.id as id1_11_, studentque0_.question_id as question2_11_, studentque0_.user_id as user_id3_11_ from student_question studentque0_
2272020-03-13 12:42:07.060 ERROR 7248 --- [ main] p.u.t.s.tutor.exceptions.TutorException : User not found with id 6
2282020-03-13 12:42:07.071 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@59301546, testMethod = $spock_feature_0_2@CreateQuestionEvaluationTest, testException = Condition failed with Exception:
229
230questionEvaluationRepository.size() == 0L
231| |
232| groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
233| Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
234| at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.teacher does not exist(createQuestionEvaluationTest.groovy:178)
235org.springframework.data.jpa.repository.support.SimpleJpaRepository@1f2d0ca2
236, mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]
237
238Condition failed with Exception:
239
240questionEvaluationRepository.size() == 0L
241| |
242| groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
243| Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
244| at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.teacher does not exist(createQuestionEvaluationTest.groovy:178)
245org.springframework.data.jpa.repository.support.SimpleJpaRepository@1f2d0ca2
246
247
248 at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.teacher does not exist(createQuestionEvaluationTest.groovy:178)
249Caused by: groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
250Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
251 ... 1 more
252
2532020-03-13 12:42:07.078 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@7f97e963, testMethod = $spock_feature_0_3@CreateQuestionEvaluationTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@2a7392a3]; rollback [true]
254Hibernate: insert into courses (id, name, type) values (null, ?, ?)
255Hibernate: call identity()
256Hibernate: insert into course_executions (id, academic_term, acronym, course_id, status, type) values (null, ?, ?, ?, ?, ?)
257Hibernate: call identity()
258Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
259Hibernate: call identity()
260Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
261Hibernate: call identity()
262Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
263Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
264Hibernate: select * from users u where u.key = ?
265Hibernate: insert into student_question (id, question_id, user_id) values (null, ?, ?)
266Hibernate: call identity()
267Hibernate: insert into questions (id, content, course_id, creation_date, key, number_of_answers, number_of_correct, status, title) values (null, ?, ?, ?, ?, ?, ?, ?, ?)
268Hibernate: call identity()
269Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
270Hibernate: call identity()
271Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
272Hibernate: call identity()
273Hibernate: update student_question set question_id=?, user_id=? where id=?
274Hibernate: insert into users_student_questions (user_id, student_questions_id) values (?, ?)
275Hibernate: select studentque0_.id as id1_11_, studentque0_.question_id as question2_11_, studentque0_.user_id as user_id3_11_ from student_question studentque0_
2762020-03-13 12:42:07.110 ERROR 7248 --- [ main] p.u.t.s.tutor.exceptions.TutorException : Student question has no justification
2772020-03-13 12:42:07.119 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@7f97e963, testMethod = $spock_feature_0_3@CreateQuestionEvaluationTest, testException = Condition failed with Exception:
278
279questionEvaluationRepository.size() == 0
280| |
281| groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
282| Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
283| at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.justification is null(createQuestionEvaluationTest.groovy:194)
284org.springframework.data.jpa.repository.support.SimpleJpaRepository@1f2d0ca2
285, mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]
286
287Condition failed with Exception:
288
289questionEvaluationRepository.size() == 0
290| |
291| groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
292| Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
293| at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.justification is null(createQuestionEvaluationTest.groovy:194)
294org.springframework.data.jpa.repository.support.SimpleJpaRepository@1f2d0ca2
295
296
297 at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.justification is null(createQuestionEvaluationTest.groovy:194)
298Caused by: groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
299Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
300 ... 1 more
301
3022020-03-13 12:42:07.159 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@4199761d, testMethod = $spock_feature_0_4@CreateQuestionEvaluationTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@2a7392a3]; rollback [true]
303Hibernate: insert into courses (id, name, type) values (null, ?, ?)
304Hibernate: call identity()
305Hibernate: insert into course_executions (id, academic_term, acronym, course_id, status, type) values (null, ?, ?, ?, ?, ?)
306Hibernate: call identity()
307Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
308Hibernate: call identity()
309Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
310Hibernate: call identity()
311Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
312Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
313Hibernate: select * from users u where u.key = ?
314Hibernate: insert into student_question (id, question_id, user_id) values (null, ?, ?)
315Hibernate: call identity()
316Hibernate: insert into questions (id, content, course_id, creation_date, key, number_of_answers, number_of_correct, status, title) values (null, ?, ?, ?, ?, ?, ?, ?, ?)
317Hibernate: call identity()
318Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
319Hibernate: call identity()
320Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
321Hibernate: call identity()
322Hibernate: update student_question set question_id=?, user_id=? where id=?
323Hibernate: insert into users_student_questions (user_id, student_questions_id) values (?, ?)
324Hibernate: select studentque0_.id as id1_11_, studentque0_.question_id as question2_11_, studentque0_.user_id as user_id3_11_ from student_question studentque0_
3252020-03-13 12:42:07.214 ERROR 7248 --- [ main] p.u.t.s.tutor.exceptions.TutorException : Student question has no justification
3262020-03-13 12:42:07.233 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@4199761d, testMethod = $spock_feature_0_4@CreateQuestionEvaluationTest, testException = Condition failed with Exception:
327
328questionEvaluationRepository.size() == 0
329| |
330| groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
331| Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
332| at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.justification is empty(createQuestionEvaluationTest.groovy:210)
333org.springframework.data.jpa.repository.support.SimpleJpaRepository@1f2d0ca2
334, mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]
335
336Condition failed with Exception:
337
338questionEvaluationRepository.size() == 0
339| |
340| groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
341| Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
342| at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.justification is empty(createQuestionEvaluationTest.groovy:210)
343org.springframework.data.jpa.repository.support.SimpleJpaRepository@1f2d0ca2
344
345
346 at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.justification is empty(createQuestionEvaluationTest.groovy:210)
347Caused by: groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy133.size() is applicable for argument types: () values: []
348Possible solutions: save(java.lang.Object), is(java.lang.Object), find(), with(groovy.lang.Closure), sleep(long), find(groovy.lang.Closure)
349 ... 1 more
350
3512020-03-13 12:42:07.264 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@655b9169, testMethod = $spock_feature_0_5@CreateQuestionEvaluationTest, testException = [null], mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@2a7392a3]; rollback [true]
352Hibernate: insert into courses (id, name, type) values (null, ?, ?)
353Hibernate: call identity()
354Hibernate: insert into course_executions (id, academic_term, acronym, course_id, status, type) values (null, ?, ?, ?, ?, ?)
355Hibernate: call identity()
356Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
357Hibernate: call identity()
358Hibernate: insert into users (id, creation_date, enrolled_courses_acronyms, key, last_access, name, number_of_correct_in_class_answers, number_of_correct_student_answers, number_of_correct_teacher_answers, number_of_in_class_answers, number_of_in_class_quizzes, number_of_student_answers, number_of_student_quizzes, number_of_teacher_answers, number_of_teacher_quizzes, role, username) values (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
359Hibernate: call identity()
360Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
361Hibernate: insert into users_course_executions (users_id, course_executions_id) values (?, ?)
362Hibernate: select * from users u where u.key = ?
363Hibernate: insert into student_question (id, question_id, user_id) values (null, ?, ?)
364Hibernate: call identity()
365Hibernate: insert into questions (id, content, course_id, creation_date, key, number_of_answers, number_of_correct, status, title) values (null, ?, ?, ?, ?, ?, ?, ?, ?)
366Hibernate: call identity()
367Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
368Hibernate: call identity()
369Hibernate: insert into options (id, content, correct, question_id, sequence) values (null, ?, ?, ?, ?)
370Hibernate: call identity()
371Hibernate: update student_question set question_id=?, user_id=? where id=?
372Hibernate: insert into users_student_questions (user_id, student_questions_id) values (?, ?)
373Hibernate: select studentque0_.id as id1_11_, studentque0_.question_id as question2_11_, studentque0_.user_id as user_id3_11_ from student_question studentque0_
3742020-03-13 12:42:07.445 INFO 7248 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@68dc098b testClass = CreateQuestionEvaluationTest, testInstance = pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest@655b9169, testMethod = $spock_feature_0_5@CreateQuestionEvaluationTest, testException = groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy131.add() is applicable for argument types: (pt.ulisboa.tecnico.socialsoftware.tutor.user.User) values: [User{id=null, role=TEACHER, id=null, username='Other Teacher Username', name='Other Teacher Name', courseAcronyms='null', numberOfTeacherQuizzes=0, numberOfInClassQuizzes=0, numberOfStudentQuizzes=0, numberOfTeacherAnswers=0, numberOfCorrectTeacherAnswers=0, numberOfInClassAnswers=0, numberOfCorrectInClassAnswers=0, numberOfStudentAnswers=0, numberOfCorrectStudentAnswers=0, creationDate=2020-03-13T12:42:07.344252, courseExecutions=[]}]
375Possible solutions: any(), any(groovy.lang.Closure), wait(), find(), wait(long), save(java.lang.Object), mergedContextConfiguration = [MergedContextConfiguration@38ba6ce3 testClass = CreateQuestionEvaluationTest, locations = '{}', classes = '{class pt.ulisboa.tecnico.socialsoftware.tutor.TutorApplication, class pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest$StudentQuestionServiceImplTestContextConfiguration}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTestContextBootstrapper=true}', contextCustomizers = set[[ImportsContextCustomizer@d278d2b key = [org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration, org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration, org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration, org.springframework.boot.autoconfigure.jdbc.JdbcTemplateAutoConfiguration, org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration, org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration, org.springframework.boot.test.autoconfigure.jdbc.TestDatabaseAutoConfiguration, org.springframework.boot.test.autoconfigure.orm.jpa.TestEntityManagerAutoConfiguration]], org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@53fe15ff, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@5b1669c0, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.autoconfigure.OverrideAutoConfigurationContextCustomizerFactory$DisableAutoConfigurationContextCustomizer@58cbafc2, org.springframework.boot.test.autoconfigure.filter.TypeExcludeFiltersContextCustomizer@351584c0, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@16e33cd7, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@57a78e3, org.spockframework.spring.mock.SpockContextCustomizer@0], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.spockframework.spring.SpringMockTestExecutionListener.MOCKED_BEANS_LIST' -> list[[empty]]]]
376
377groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy131.add() is applicable for argument types: (pt.ulisboa.tecnico.socialsoftware.tutor.user.User) values: [User{id=null, role=TEACHER, id=null, username='Other Teacher Username', name='Other Teacher Name', courseAcronyms='null', numberOfTeacherQuizzes=0, numberOfInClassQuizzes=0, numberOfStudentQuizzes=0, numberOfTeacherAnswers=0, numberOfCorrectTeacherAnswers=0, numberOfInClassAnswers=0, numberOfCorrectInClassAnswers=0, numberOfStudentAnswers=0, numberOfCorrectStudentAnswers=0, creationDate=2020-03-13T12:42:07.344252, courseExecutions=[]}]
378Possible solutions: any(), any(groovy.lang.Closure), wait(), find(), wait(long), save(java.lang.Object)
379
380 at pt.ulisboa.tecnico.socialsoftware.tutor.studentQuestion.service.CreateQuestionEvaluationTest.teacher does not teach the course of the question(createQuestionEvaluationTest.groovy:220)
381
3822020-03-13 12:42:07.476 INFO 7248 --- [extShutdownHook] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
383
384Process finished with exit code 255