ReadFlockTest
|
100%
successful |
Tests
Test | Duration | Result |
---|---|---|
testAllByDateEmptyResultSet() | 0.008s | passed |
testAllByDateValidData() | 0.078s | passed |
testAllByIDEmptyResultSet() | 0.011s | passed |
testAllByIDValidData() | 0.015s | passed |
testGetFlockFromADateNoData() | 0.032s | passed |
testGetFlockFromADateWithDataOne() | 0.032s | passed |
testGetFlocksFromDateEndDateBeforeStartDate() | 0.016s | passed |
testGetFlocksFromDateNoData() | 0.018s | passed |
testGetFlocksFromDateWithDataOne() | 0.014s | passed |
testGetFlocksFromDateWithDataTwo() | 0.203s | passed |
testQueryAllHandlesSQLException() | 0.032s | passed |
testSearchFlocksInputForMonthAndYearNumericDNE() | 0.027s | passed |
testSearchFlocksWithInvalidInputForFullDateFirstVariation() | 0.027s | passed |
testSearchFlocksWithInvalidInputForFullDateSecondVariation() | 0.026s | passed |
testSearchFlocksWithInvalidInputForFullDateThirdVariation() | 0.027s | passed |
testSearchFlocksWithInvalidInputForMonth() | 0.025s | passed |
testSearchFlocksWithInvalidInputForMonthAndYearText() | 0.022s | passed |
testSearchFlocksWithInvalidInputForYear() | 0.020s | passed |
testSearchFlocksWithValidInputForFetchByFullDateFirstVariation() | 0.017s | passed |
testSearchFlocksWithValidInputForFetchByFullDateSecondVariation() | 0.015s | passed |
testSearchFlocksWithValidInputForFetchByFullDateThirdVariation() | 0.021s | passed |
testSearchFlocksWithValidInputForFetchByYear() | 0.021s | passed |
testSearchFlocksWithValidInputForMonthAndYearDash() | 0.036s | passed |
testSearchFlocksWithValidInputForMonthAndYearNumeric() | 0.026s | passed |
testSearchFlocksWithValidInputForMonthAndYearText() | 0.011s | passed |
testSearchFlocksWithValidInputForMonthNumericBuffer() | 0.027s | passed |
testSearchFlocksWithValidInputForMonthOnly() | 0.029s | 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 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 `getFlockFromDate()`. End date happens before start date. Solution: No solution provided. ======================== 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 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 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 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 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 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 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 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 `queryFlocks()`. 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 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 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 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
Standard error
org.postgresql.util.PSQLException: This connection has been closed. at org.postgresql.jdbc.PgConnection.checkClosed(PgConnection.java:1009) at org.postgresql.jdbc.PgConnection.createStatement(PgConnection.java:1852) at org.postgresql.jdbc.PgConnection.createStatement(PgConnection.java:529) at org.db_poultry.db.flockDAO.ReadFlock.queryAll(ReadFlock.java:29) at org.db_poultry.db.flockDAO.ReadFlock.allByID(ReadFlock.java:73) at org.db_poultry.db.flockDAO.ReadFlockTest.testQueryAllHandlesSQLException(ReadFlockTest.kt:112) 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)