CreateFlockDetailsTest
|
100%
successful |
Tests
Test | Duration | Result |
---|---|---|
testCreateFlockDetailsBeforeFlockStartDate() | 0.038s | passed |
testCreateFlockDetailsInbetween() | 0.028s | passed |
testCreateFlockDetailsValidInput() | 0.018s | passed |
testCreateFlockDetailsWithDNEFlockDate() | 0.013s | passed |
testCreateFlockDetailsWithDepletedGreaterThanStartingCountOne() | 0.017s | passed |
testCreateFlockDetailsWithDepletedGreaterThanStartingCountTwo() | 0.025s | passed |
testCreateFlockDetailsWithNegativeDepletedCount() | 0.014s | passed |
testCreateFlockDetailsWithSameDate() | 0.026s | passed |
testCreateFlockDetailsWithSameDateInDifferentFlock() | 0.048s | passed |
testCreateFlockDetailsZeroDepletedCount() | 0.020s | passed |
Standard output
database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry ============================== DB_POULTRY ERROR Error in `createFlockDetails()` in `CreateFlockDetails`. The depleted count is invalid. Solution: Ensure that the depleted count ensures that the TOTAL count is positive. ======================== END OF DB_POULTRY ERROR database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry ============================== DB_POULTRY ERROR Error in `createFlockDetails()` in `CreateFlockDetails`. The depleted count is invalid. Solution: Ensure that the depleted count ensures that the TOTAL count is positive. ======================== END OF DB_POULTRY ERROR database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry ============================== DB_POULTRY ERROR Error in `createFlockDetails()` in `CreateFlockDetails`. A flock does not exist using the provided date. Solution: Ensure the provided date has a pre-existing flock. ======================== END OF DB_POULTRY ERROR database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry ============================== DB_POULTRY ERROR Error in `createFlockDetails()` in `CreateFlockDetails`. The detail date selected is invalid. Solution: Ensure that the detail date is possible. ======================== END OF DB_POULTRY ERROR ============================== DB_POULTRY ERROR Error in `createFlockDetails()` in `CreateFlockDetails`. The detail date selected is invalid. Solution: Ensure that the detail date is possible. ======================== END OF DB_POULTRY ERROR database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry ============================== DB_POULTRY ERROR Error in `createFlockDetails()`. SQLException occurred. Solution: No solution provided. Exception Stack Trace: ======================== END OF DB_POULTRY ERROR database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry ============================== DB_POULTRY ERROR Error in `createFlockDetails()` in `CreateFlockDetails`. The depleted count is invalid. Solution: Ensure that the depleted count ensures that the TOTAL count is positive. ======================== END OF DB_POULTRY ERROR database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry database name: db_poultry database pass: DogIsSoAmazingAndKind database port: 5432 Welcome to DBPoultry's DBMS Connected to: jdbc:postgresql://localhost:5432/db_poultry ============================== DB_POULTRY ERROR Error in `createFlockDetails()` in `CreateFlockDetails`. The detail date selected is invalid. Solution: Ensure that the detail date is possible. ======================== END OF DB_POULTRY ERROR ============================== DB_POULTRY ERROR Error in `createFlockDetails()` in `CreateFlockDetails`. The detail date selected is invalid. Solution: Ensure that the detail date is possible. ======================== END OF DB_POULTRY ERROR ============================== DB_POULTRY ERROR Error in `createFlockDetails()` in `CreateFlockDetails`. The detail date selected is invalid. Solution: Ensure that the detail date is possible. ======================== END OF DB_POULTRY ERROR
Standard error
org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "flock_details_fd_date_key" Detail: Key (fd_date)=(1000-01-03) already exists. at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2725) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2412) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:371) at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:502) at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:419) at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:194) at org.postgresql.jdbc.PgPreparedStatement.executeUpdate(PgPreparedStatement.java:155) at org.db_poultry.db.flockDetailsDAO.CreateFlockDetails.createFlockDetails(CreateFlockDetails.java:77) at org.db_poultry.db.flockDetailsDAO.CreateFlockDetailsTest.testCreateFlockDetailsWithSameDate(CreateFlockDetailsTest.kt:96) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:728) at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147) at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93) at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92) at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:218) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:214) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:139) at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:69) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35) at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:198) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:169) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:93) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:58) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:141) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:57) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:103) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:85) at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:47) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:124) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:99) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:94) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:63) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:92) at jdk.proxy1/jdk.proxy1.$Proxy4.stop(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:200) at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:132) at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:103) at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:63) at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56) at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:122) at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:72) at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69) at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)