From 67ed18fe86ddfabe5f6c6c270273597799722a72 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sat, 26 Jun 2021 22:07:53 +0200 Subject: Tests are ok fully covered. --- target/site/jacoco/index.html | 2 +- target/site/jacoco/jacoco-sessions.html | 2 +- target/site/jacoco/jacoco.csv | 5 +- target/site/jacoco/jacoco.xml | 2 +- .../jacoco/musichub.business/PathValidation.html | 1 - .../musichub.business/PathValidation.java.html | 39 -- target/site/jacoco/musichub.business/index.html | 2 +- .../jacoco/musichub.business/index.source.html | 2 +- target/site/jacoco/musichub.main/Main.html | 2 +- target/site/jacoco/musichub.main/Main.java.html | 410 +++++++++++---------- target/site/jacoco/musichub.main/index.html | 2 +- target/site/jacoco/musichub.main/index.source.html | 2 +- target/site/jacoco/musichub.util/index.html | 2 +- target/site/jacoco/musichub.util/index.source.html | 2 +- 14 files changed, 223 insertions(+), 252 deletions(-) delete mode 100644 target/site/jacoco/musichub.business/PathValidation.html delete mode 100644 target/site/jacoco/musichub.business/PathValidation.java.html (limited to 'target/site/jacoco') diff --git a/target/site/jacoco/index.html b/target/site/jacoco/index.html index f0faf92..b800f3f 100644 --- a/target/site/jacoco/index.html +++ b/target/site/jacoco/index.html @@ -1 +1 @@ -spoteezer

spoteezer

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 723 of 2 7400 %209 of 2090 %20520772372788901718
musichub.business2 0630 %1690 %17217449950381831516
musichub.main5880 %400 %29291991993311
musichub.util720 %n/a4425254411
\ No newline at end of file +spoteezer

spoteezer

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 740 of 2 8032 %210 of 2100 %20621173074588931719
musichub.business2 0630 %1690 %17217249949981811515
musichub.main6050 %410 %30302062063311
musichub.util726346 %n/a4925404913
\ No newline at end of file diff --git a/target/site/jacoco/jacoco-sessions.html b/target/site/jacoco/jacoco-sessions.html index 478feda..4058e1f 100644 --- a/target/site/jacoco/jacoco-sessions.html +++ b/target/site/jacoco/jacoco-sessions.html @@ -1 +1 @@ -Sessions

Sessions

This coverage report is based on execution data from the following sessions:

SessionStart TimeDump Time
DESKTOP-M4INQND-e57e2e0026 juin 2021, 14:29:0826 juin 2021, 14:29:09
DESKTOP-M4INQND-3e358c1a26 juin 2021, 14:29:3026 juin 2021, 14:29:30
DESKTOP-M4INQND-56f4676726 juin 2021, 14:29:4926 juin 2021, 14:29:49
DESKTOP-M4INQND-e88c304d26 juin 2021, 14:30:3026 juin 2021, 14:30:30
DESKTOP-M4INQND-20d8781c26 juin 2021, 14:30:4226 juin 2021, 14:30:43
DESKTOP-M4INQND-442c10a626 juin 2021, 14:30:5326 juin 2021, 14:30:53

Execution data for the following classes is considered in this report:

ClassId
musichub.business.PathValidation23fa11bc9f27a597
musichub.business.PathValidationTestc2c5ebe52507fc9e
musichub.business.PathValidationTest325f5b44374bcaeb
musichub.business.PathValidationTest4c7ade2bf38c6e74
musichub.business.PathValidationTest192d10ac364dc41c
org.apache.maven.plugin.surefire.log.api.NullConsoleLogger80d79e52a7499259
org.apache.maven.surefire.booter.AbstractPathConfiguration8182fa1396653f01
org.apache.maven.surefire.booter.BaseProviderFactory82593383b8ea92d6
org.apache.maven.surefire.booter.BiProperty4945e268841ae2cb
org.apache.maven.surefire.booter.BooterDeserializer5e68b147d2c4b22f
org.apache.maven.surefire.booter.ClassLoaderConfigurationdc8fd5c18ebb0e44
org.apache.maven.surefire.booter.Classpath6f6b6469b9fdf4dd
org.apache.maven.surefire.booter.ClasspathConfiguration4c7a5282c74ba3e2
org.apache.maven.surefire.booter.Commandeb1b53eb8cbe7b47
org.apache.maven.surefire.booter.CommandReader0c8d3ca700ec7199
org.apache.maven.surefire.booter.CommandReader.1fbfebde20e2b504c
org.apache.maven.surefire.booter.CommandReader.CommandRunnableee59ae4d74408619
org.apache.maven.surefire.booter.DumpErrorSingletona3fa02cb87e0e12b
org.apache.maven.surefire.booter.ForkedBootera5c33895f0d22838
org.apache.maven.surefire.booter.ForkedBooter.1c87487d278c3ea96
org.apache.maven.surefire.booter.ForkedBooter.231c66931520df8eb
org.apache.maven.surefire.booter.ForkedBooter.395d48141fa4dd03d
org.apache.maven.surefire.booter.ForkedBooter.424dcd1c5bcf0d850
org.apache.maven.surefire.booter.ForkedBooter.5862846325c16cf76
org.apache.maven.surefire.booter.ForkedBooter.6b3ab24d3791d84dd
org.apache.maven.surefire.booter.ForkedBooter.7401437f62a3b16ff
org.apache.maven.surefire.booter.ForkedBooter.PingScheduler04bf02021dfc5e9c
org.apache.maven.surefire.booter.ForkingReporterFactory076a6c0176f6238b
org.apache.maven.surefire.booter.ForkingRunListener92d4b034b32ca2c0
org.apache.maven.surefire.booter.MasterProcessCommandda65de332c2de19d
org.apache.maven.surefire.booter.PpidChecker71b8c658da2ea8d3
org.apache.maven.surefire.booter.PpidChecker.268d262a2c2ad8f14
org.apache.maven.surefire.booter.PpidChecker.ProcessInfoConsumer73f319c21fab7e7f
org.apache.maven.surefire.booter.ProcessInfob5b56cd86f3f0b31
org.apache.maven.surefire.booter.PropertiesWrapperae4bf137cc5290c1
org.apache.maven.surefire.booter.ProviderConfigurationd19986536a351b50
org.apache.maven.surefire.booter.Shutdownee9c65017e107986
org.apache.maven.surefire.booter.StartupConfigurationa8cc10b01ed27439
org.apache.maven.surefire.booter.SystemPropertyManagerf47497b1dde50d64
org.apache.maven.surefire.booter.TypeEncodedValue5ea9766678ac06a2
org.apache.maven.surefire.cli.CommandLineOption467fc7f51b73863b
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider89b934b90ec6eb01
org.apache.maven.surefire.junitplatform.RunListenerAdapter02cb8e87a6db2057
org.apache.maven.surefire.junitplatform.TestPlanScannerFilter622558f718a42827
org.apache.maven.surefire.org.apache.maven.shared.utils.StringUtils336ef03300f29635
org.apache.maven.surefire.providerapi.AbstractProvider90f3b08fe8a1c87c
org.apache.maven.surefire.report.ClassNameStackTraceFilter2e0e75f8104a222a
org.apache.maven.surefire.report.ConsoleOutputCaptureb8ae904ed8536017
org.apache.maven.surefire.report.ConsoleOutputCapture.ForwardingPrintStreamf912ea5d2dac308e
org.apache.maven.surefire.report.ConsoleOutputCapture.NullOutputStream8d05eb67510fd586
org.apache.maven.surefire.report.PojoStackTraceWritercdfe959904c6726b
org.apache.maven.surefire.report.ReporterConfiguration4281487891f02f69
org.apache.maven.surefire.report.SafeThrowablee61429531d0f0c1c
org.apache.maven.surefire.report.SimpleReportEntryced572f24a462295
org.apache.maven.surefire.report.SmartStackTraceParser05e423188a7bbb31
org.apache.maven.surefire.shade.org.apache.commons.io.IOUtils31aed2fcfab3e082
org.apache.maven.surefire.shade.org.apache.commons.io.output.StringBuilderWriter6d33fec8cb3374c0
org.apache.maven.surefire.shade.org.apache.commons.lang3.JavaVersiona8452005cb20bb7d
org.apache.maven.surefire.shade.org.apache.commons.lang3.StringUtils4f785afa8bb3a23f
org.apache.maven.surefire.shade.org.apache.commons.lang3.SystemUtilsaba69a973b7ba06a
org.apache.maven.surefire.shade.org.apache.commons.lang3.math.NumberUtilsd0156407bff7b695
org.apache.maven.surefire.shade.org.apache.maven.shared.utils.StringUtils483d14212b21a3ea
org.apache.maven.surefire.suite.RunResultf5c7c53a954bcafa
org.apache.maven.surefire.testset.DirectoryScannerParameters2b5eeacae469cd1d
org.apache.maven.surefire.testset.IncludedExcludedPatternsf39908e3b64d7090
org.apache.maven.surefire.testset.ResolvedTesta598483e424232d4
org.apache.maven.surefire.testset.ResolvedTest.ClassMatcher79be7f2fa77ad8d7
org.apache.maven.surefire.testset.ResolvedTest.MethodMatcher7c71374a51e8e61b
org.apache.maven.surefire.testset.ResolvedTest.Type90e4214668937845
org.apache.maven.surefire.testset.RunOrderParametersb4c06223c3099700
org.apache.maven.surefire.testset.TestArtifactInfof703953620e80b33
org.apache.maven.surefire.testset.TestListResolver7d372c99b98a147d
org.apache.maven.surefire.testset.TestRequest0fa2c0cc34345df2
org.apache.maven.surefire.util.CloseableIteratorcc15bdebae86d5d2
org.apache.maven.surefire.util.DefaultRunOrderCalculator1aeecbcd3bf6e89b
org.apache.maven.surefire.util.DefaultScanResult7fefafdf8c793c36
org.apache.maven.surefire.util.ReflectionUtils8d5f4b05d6d77207
org.apache.maven.surefire.util.RunOrderd2292a6beb4b6337
org.apache.maven.surefire.util.TestsToRuna95363e4b4ba2069
org.apache.maven.surefire.util.TestsToRun.ClassesIterator84a139c598502c0b
org.apache.maven.surefire.util.internal.DaemonThreadFactory21a589f6dedb169c
org.apache.maven.surefire.util.internal.DaemonThreadFactory.NamedThreadFactory682458ca85b067a3
org.apache.maven.surefire.util.internal.DumpFileUtilsfff19f49be3d8149
org.apache.maven.surefire.util.internal.ImmutableMap72bcae5e55b4fabb
org.apache.maven.surefire.util.internal.ObjectUtils69a2a92649b44645
org.apache.maven.surefire.util.internal.StringUtils3a7e4daf0a993e1e
org.apiguardian.api.API.Status0341e8d99fc36573
org.junit.jupiter.api.AssertEquals12bfbbf2e4327e63
org.junit.jupiter.api.AssertFalse32fea5a28fb6a114
org.junit.jupiter.api.AssertTrue612f68f7274dd69c
org.junit.jupiter.api.AssertionUtilsda37ffd9f98016fd
org.junit.jupiter.api.Assertions041279bcf2826fff
org.junit.jupiter.api.TestInstance.Lifecycle0e93858cc703e9fc
org.junit.jupiter.api.extension.ConditionEvaluationResult2f9dc9ea54b57975
org.junit.jupiter.api.extension.ExtensionContext222e1fc44c4844aa
org.junit.jupiter.engine.DiscoveryFilterApplierae96a3ff3c2e2bc4
org.junit.jupiter.engine.JupiterTestEnginec74f725c8cb223be
org.junit.jupiter.engine.descriptor.AbstractExtensionContext1f7ed0b87a9f2cca
org.junit.jupiter.engine.descriptor.ClassExtensionContextb85422abe06bbadd
org.junit.jupiter.engine.descriptor.ClassTestDescriptor61a635a4acc3ee31
org.junit.jupiter.engine.descriptor.JupiterEngineDescriptord025635c09450d0d
org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext7ae853fe3a80d83c
org.junit.jupiter.engine.descriptor.JupiterTestDescriptor606e5ec97816bda5
org.junit.jupiter.engine.descriptor.LifecycleMethodUtils19c9fba5accef0fa
org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor65654838f58d8b44
org.junit.jupiter.engine.descriptor.MethodExtensionContextc098f6d0bb344d56
org.junit.jupiter.engine.descriptor.TestInstanceLifecycleUtilsc42bb138e6a06252
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor54eb6a19bd953962
org.junit.jupiter.engine.discovery.AbstractMethodResolver3934f16bf877b9f5
org.junit.jupiter.engine.discovery.DiscoverySelectorResolvera858789f976fefbc
org.junit.jupiter.engine.discovery.JavaElementsResolver32e9ea682e77049d
org.junit.jupiter.engine.discovery.MethodFinder5ea468d2eb528361
org.junit.jupiter.engine.discovery.NestedTestsResolver9d92451ae793af41
org.junit.jupiter.engine.discovery.TestContainerResolver7db010f5e9c7301d
org.junit.jupiter.engine.discovery.TestFactoryMethodResolver59fd27320e375440
org.junit.jupiter.engine.discovery.TestMethodResolver1417c6356fa4b27f
org.junit.jupiter.engine.discovery.TestTemplateMethodResolver47563eb55cd35171
org.junit.jupiter.engine.discovery.predicates.IsInnerClassf7d9846d00228720
org.junit.jupiter.engine.discovery.predicates.IsNestedTestClasse47ff7cd33073803
org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer0f8df015b2d5841a
org.junit.jupiter.engine.discovery.predicates.IsScannableTestClass839db992754219f6
org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests5ab134cc6ef3a81f
org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethoda2c68978bd6bfbc6
org.junit.jupiter.engine.discovery.predicates.IsTestMethod8b244977e441886e
org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod0baf1066bf0cbad7
org.junit.jupiter.engine.discovery.predicates.IsTestableMethod59a0b58a40803fe2
org.junit.jupiter.engine.execution.ConditionEvaluatorfba35d945644501d
org.junit.jupiter.engine.execution.ExecutableInvokerd64b9ef7a154ea95
org.junit.jupiter.engine.execution.ExtensionValuesStore2517eb7835ca6234
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext65be276e3a954a94
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builderdd69537274ccbffc
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.State38616672a2502408
org.junit.jupiter.engine.execution.ThrowableCollector92102b13561afdcf
org.junit.jupiter.engine.extension.DisabledConditiona967493a244329fa
org.junit.jupiter.engine.extension.ExtensionRegistry20b847fc63fd255b
org.junit.jupiter.engine.extension.RepeatedTestExtension1b7914cc8cf83732
org.junit.jupiter.engine.extension.TestInfoParameterResolver1b5b370a56807cae
org.junit.jupiter.engine.extension.TestReporterParameterResolver839c7c31b3ec6390
org.junit.platform.commons.logging.LoggerFactoryca4e1a8773fb9bed
org.junit.platform.commons.logging.LoggerFactory.DelegatingLoggerfd74fe2bb4edddd0
org.junit.platform.commons.util.AnnotationUtils32499b01efc144e8
org.junit.platform.commons.util.AnnotationUtils.AnnotationCacheKeyf04082259bc4a6ab
org.junit.platform.commons.util.BlacklistedExceptions73365157bacc50af
org.junit.platform.commons.util.ClassLoaderUtilsebded5f4ecebd9d8
org.junit.platform.commons.util.ClassUtils4982a89773933a90
org.junit.platform.commons.util.ClasspathScanner8425ab535628f6b9
org.junit.platform.commons.util.CollectionUtils59532d0e14166bc8
org.junit.platform.commons.util.ExceptionUtils0125033b30a9585f
org.junit.platform.commons.util.Preconditionsf9207dc44e9d043d
org.junit.platform.commons.util.ReflectionUtils4d39f1033ae8eb12
org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalModeb267f8ac562d551e
org.junit.platform.commons.util.StringUtils3441f99393e2406b
org.junit.platform.engine.CompositeFilterd9d6482243cc9fa3
org.junit.platform.engine.CompositeFilter.175dffc26c0811b9d
org.junit.platform.engine.ExecutionRequested3835cc21e5a048
org.junit.platform.engine.Filterf932423ccd3b54bf
org.junit.platform.engine.FilterResultbf731bc7f64ce694
org.junit.platform.engine.TestDescriptore9574ca206cded64
org.junit.platform.engine.TestDescriptor.Typeeb97fc5a29f3ee3a
org.junit.platform.engine.TestExecutionResultabbab174d32db912
org.junit.platform.engine.TestExecutionResult.Statusda0473a55d05e891
org.junit.platform.engine.UniqueIdd23a178963e86ca7
org.junit.platform.engine.UniqueId.Segment54a2765f04c8cab7
org.junit.platform.engine.UniqueIdFormatc860ade4b928ce32
org.junit.platform.engine.discovery.ClassSelector228aa96d72021db2
org.junit.platform.engine.discovery.DiscoverySelectors8fefc6f1651cc3bd
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor2bfbf25c43491443
org.junit.platform.engine.support.descriptor.ClassSource9727c5551a632c40
org.junit.platform.engine.support.descriptor.EngineDescriptorb7dbf6dfb794516c
org.junit.platform.engine.support.descriptor.MethodSource0a1b0f0f95f17b77
org.junit.platform.engine.support.filter.ClasspathScanningSupport8223a02c2b9d8c89
org.junit.platform.engine.support.hierarchical.ExecutionTrackercbd37bfd76595d62
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine410766a2a07e44b1
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor7b43a475463d740e
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.1197b854565198af0
org.junit.platform.engine.support.hierarchical.Node8a5379bd364a5bf6
org.junit.platform.engine.support.hierarchical.Node.SkipResultd4551dfb7a813206
org.junit.platform.engine.support.hierarchical.SingleTestExecutord75bd01628eef7be
org.junit.platform.launcher.TestIdentifier225bb434f8f223e2
org.junit.platform.launcher.TestPlan9a2b71b572924cbc
org.junit.platform.launcher.core.DefaultDiscoveryRequest7dda3ad9a0e6a666
org.junit.platform.launcher.core.DefaultLauncher1a1f88af87dc6ec1
org.junit.platform.launcher.core.ExecutionListenerAdapter52cf3c3c69d4dfba
org.junit.platform.launcher.core.LauncherConfigurationParametersef55cacb5e47a902
org.junit.platform.launcher.core.LauncherDiscoveryRequestBuildere78a71b91c159e69
org.junit.platform.launcher.core.LauncherFactorye2bd67b8a72737b5
org.junit.platform.launcher.core.Root32394ca895f9fb9a
org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry7c054c4cf76cb0f6
org.junit.platform.launcher.core.ServiceLoaderTestExecutionListenerRegistry2299bac1075a6bf3
org.junit.platform.launcher.core.TestExecutionListenerRegistry190f4fb2b0ab865d
org.junit.platform.launcher.core.TestExecutionListenerRegistry.CompositeTestExecutionListener7538d2d860e1f9cb
org.junit.platform.launcher.listeners.LegacyReportingUtilsf3c021e100a54063
org.opentest4j.AssertionFailedError2c5f69ceb24e9128
org.opentest4j.ValueWrapper7d0d1c90c1c4c4b3
sun.text.resources.cldr.ext.FormatData_frcfe4ef8ff7428512
sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo888d0e6a76acb845
sun.util.resources.provider.LocaleDataProvider36ca29d59ab35e5c
\ No newline at end of file +Sessions

Sessions

This coverage report is based on execution data from the following sessions:

SessionStart TimeDump Time
DESKTOP-M4INQND-be4b9e1226 juin 2021, 22:06:2526 juin 2021, 22:06:26
DESKTOP-M4INQND-4db7b83426 juin 2021, 22:06:3826 juin 2021, 22:06:38

Execution data for the following classes is considered in this report:

ClassId
java.sql.Dated25610486aed3f31
java.sql.Timestampb848522074600355
musichub.util.LogHandler727806a24a38b49a
musichub.util.LogHandlerTestd7b83ca1e47cacd7
musichub.util.PathValidation538d6ca0ac9478ad
musichub.util.PathValidationTestb026f96f38b030a9
org.apache.maven.plugin.surefire.log.api.NullConsoleLogger80d79e52a7499259
org.apache.maven.surefire.booter.AbstractPathConfiguration8182fa1396653f01
org.apache.maven.surefire.booter.BaseProviderFactory82593383b8ea92d6
org.apache.maven.surefire.booter.BiProperty4945e268841ae2cb
org.apache.maven.surefire.booter.BooterDeserializer5e68b147d2c4b22f
org.apache.maven.surefire.booter.ClassLoaderConfigurationdc8fd5c18ebb0e44
org.apache.maven.surefire.booter.Classpath6f6b6469b9fdf4dd
org.apache.maven.surefire.booter.ClasspathConfiguration4c7a5282c74ba3e2
org.apache.maven.surefire.booter.Commandeb1b53eb8cbe7b47
org.apache.maven.surefire.booter.CommandReader0c8d3ca700ec7199
org.apache.maven.surefire.booter.CommandReader.1fbfebde20e2b504c
org.apache.maven.surefire.booter.CommandReader.CommandRunnableee59ae4d74408619
org.apache.maven.surefire.booter.DumpErrorSingletona3fa02cb87e0e12b
org.apache.maven.surefire.booter.ForkedBootera5c33895f0d22838
org.apache.maven.surefire.booter.ForkedBooter.1c87487d278c3ea96
org.apache.maven.surefire.booter.ForkedBooter.231c66931520df8eb
org.apache.maven.surefire.booter.ForkedBooter.395d48141fa4dd03d
org.apache.maven.surefire.booter.ForkedBooter.424dcd1c5bcf0d850
org.apache.maven.surefire.booter.ForkedBooter.5862846325c16cf76
org.apache.maven.surefire.booter.ForkedBooter.6b3ab24d3791d84dd
org.apache.maven.surefire.booter.ForkedBooter.7401437f62a3b16ff
org.apache.maven.surefire.booter.ForkedBooter.PingScheduler04bf02021dfc5e9c
org.apache.maven.surefire.booter.ForkingReporterFactory076a6c0176f6238b
org.apache.maven.surefire.booter.ForkingRunListener92d4b034b32ca2c0
org.apache.maven.surefire.booter.MasterProcessCommandda65de332c2de19d
org.apache.maven.surefire.booter.PpidChecker71b8c658da2ea8d3
org.apache.maven.surefire.booter.PpidChecker.268d262a2c2ad8f14
org.apache.maven.surefire.booter.PpidChecker.ProcessInfoConsumer73f319c21fab7e7f
org.apache.maven.surefire.booter.ProcessInfob5b56cd86f3f0b31
org.apache.maven.surefire.booter.PropertiesWrapperae4bf137cc5290c1
org.apache.maven.surefire.booter.ProviderConfigurationd19986536a351b50
org.apache.maven.surefire.booter.Shutdownee9c65017e107986
org.apache.maven.surefire.booter.StartupConfigurationa8cc10b01ed27439
org.apache.maven.surefire.booter.SystemPropertyManagerf47497b1dde50d64
org.apache.maven.surefire.booter.TypeEncodedValue5ea9766678ac06a2
org.apache.maven.surefire.cli.CommandLineOption467fc7f51b73863b
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider89b934b90ec6eb01
org.apache.maven.surefire.junitplatform.RunListenerAdapter02cb8e87a6db2057
org.apache.maven.surefire.junitplatform.TestPlanScannerFilter622558f718a42827
org.apache.maven.surefire.providerapi.AbstractProvider90f3b08fe8a1c87c
org.apache.maven.surefire.report.ConsoleOutputCaptureb8ae904ed8536017
org.apache.maven.surefire.report.ConsoleOutputCapture.ForwardingPrintStreamf912ea5d2dac308e
org.apache.maven.surefire.report.ConsoleOutputCapture.NullOutputStream8d05eb67510fd586
org.apache.maven.surefire.report.ReporterConfiguration4281487891f02f69
org.apache.maven.surefire.report.SimpleReportEntryced572f24a462295
org.apache.maven.surefire.shade.org.apache.commons.io.IOUtils31aed2fcfab3e082
org.apache.maven.surefire.shade.org.apache.commons.io.output.StringBuilderWriter6d33fec8cb3374c0
org.apache.maven.surefire.shade.org.apache.commons.lang3.JavaVersiona8452005cb20bb7d
org.apache.maven.surefire.shade.org.apache.commons.lang3.StringUtils4f785afa8bb3a23f
org.apache.maven.surefire.shade.org.apache.commons.lang3.SystemUtilsaba69a973b7ba06a
org.apache.maven.surefire.shade.org.apache.commons.lang3.math.NumberUtilsd0156407bff7b695
org.apache.maven.surefire.shade.org.apache.maven.shared.utils.StringUtils483d14212b21a3ea
org.apache.maven.surefire.suite.RunResultf5c7c53a954bcafa
org.apache.maven.surefire.testset.DirectoryScannerParameters2b5eeacae469cd1d
org.apache.maven.surefire.testset.IncludedExcludedPatternsf39908e3b64d7090
org.apache.maven.surefire.testset.ResolvedTesta598483e424232d4
org.apache.maven.surefire.testset.ResolvedTest.ClassMatcher79be7f2fa77ad8d7
org.apache.maven.surefire.testset.ResolvedTest.MethodMatcher7c71374a51e8e61b
org.apache.maven.surefire.testset.ResolvedTest.Type90e4214668937845
org.apache.maven.surefire.testset.RunOrderParametersb4c06223c3099700
org.apache.maven.surefire.testset.TestArtifactInfof703953620e80b33
org.apache.maven.surefire.testset.TestListResolver7d372c99b98a147d
org.apache.maven.surefire.testset.TestRequest0fa2c0cc34345df2
org.apache.maven.surefire.util.CloseableIteratorcc15bdebae86d5d2
org.apache.maven.surefire.util.DefaultRunOrderCalculator1aeecbcd3bf6e89b
org.apache.maven.surefire.util.DefaultScanResult7fefafdf8c793c36
org.apache.maven.surefire.util.ReflectionUtils8d5f4b05d6d77207
org.apache.maven.surefire.util.RunOrderd2292a6beb4b6337
org.apache.maven.surefire.util.TestsToRuna95363e4b4ba2069
org.apache.maven.surefire.util.TestsToRun.ClassesIterator84a139c598502c0b
org.apache.maven.surefire.util.internal.DaemonThreadFactory21a589f6dedb169c
org.apache.maven.surefire.util.internal.DaemonThreadFactory.NamedThreadFactory682458ca85b067a3
org.apache.maven.surefire.util.internal.DumpFileUtilsfff19f49be3d8149
org.apache.maven.surefire.util.internal.ImmutableMap72bcae5e55b4fabb
org.apache.maven.surefire.util.internal.ObjectUtils69a2a92649b44645
org.apache.maven.surefire.util.internal.StringUtils3a7e4daf0a993e1e
org.apache.maven.surefire.util.internal.StringUtils.EncodedArray477f1d94d78cb50b
org.apiguardian.api.API.Status0341e8d99fc36573
org.junit.jupiter.api.AssertEquals12bfbbf2e4327e63
org.junit.jupiter.api.AssertFalse32fea5a28fb6a114
org.junit.jupiter.api.AssertTrue612f68f7274dd69c
org.junit.jupiter.api.AssertionUtilsda37ffd9f98016fd
org.junit.jupiter.api.Assertions041279bcf2826fff
org.junit.jupiter.api.TestInstance.Lifecycle0e93858cc703e9fc
org.junit.jupiter.api.extension.ConditionEvaluationResult2f9dc9ea54b57975
org.junit.jupiter.api.extension.ExtensionContext222e1fc44c4844aa
org.junit.jupiter.engine.DiscoveryFilterApplierae96a3ff3c2e2bc4
org.junit.jupiter.engine.JupiterTestEnginec74f725c8cb223be
org.junit.jupiter.engine.descriptor.AbstractExtensionContext1f7ed0b87a9f2cca
org.junit.jupiter.engine.descriptor.ClassExtensionContextb85422abe06bbadd
org.junit.jupiter.engine.descriptor.ClassTestDescriptor61a635a4acc3ee31
org.junit.jupiter.engine.descriptor.JupiterEngineDescriptord025635c09450d0d
org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext7ae853fe3a80d83c
org.junit.jupiter.engine.descriptor.JupiterTestDescriptor606e5ec97816bda5
org.junit.jupiter.engine.descriptor.LifecycleMethodUtils19c9fba5accef0fa
org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor65654838f58d8b44
org.junit.jupiter.engine.descriptor.MethodExtensionContextc098f6d0bb344d56
org.junit.jupiter.engine.descriptor.TestInstanceLifecycleUtilsc42bb138e6a06252
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor54eb6a19bd953962
org.junit.jupiter.engine.discovery.AbstractMethodResolver3934f16bf877b9f5
org.junit.jupiter.engine.discovery.DiscoverySelectorResolvera858789f976fefbc
org.junit.jupiter.engine.discovery.JavaElementsResolver32e9ea682e77049d
org.junit.jupiter.engine.discovery.MethodFinder5ea468d2eb528361
org.junit.jupiter.engine.discovery.NestedTestsResolver9d92451ae793af41
org.junit.jupiter.engine.discovery.TestContainerResolver7db010f5e9c7301d
org.junit.jupiter.engine.discovery.TestFactoryMethodResolver59fd27320e375440
org.junit.jupiter.engine.discovery.TestMethodResolver1417c6356fa4b27f
org.junit.jupiter.engine.discovery.TestTemplateMethodResolver47563eb55cd35171
org.junit.jupiter.engine.discovery.predicates.IsInnerClassf7d9846d00228720
org.junit.jupiter.engine.discovery.predicates.IsNestedTestClasse47ff7cd33073803
org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer0f8df015b2d5841a
org.junit.jupiter.engine.discovery.predicates.IsScannableTestClass839db992754219f6
org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests5ab134cc6ef3a81f
org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethoda2c68978bd6bfbc6
org.junit.jupiter.engine.discovery.predicates.IsTestMethod8b244977e441886e
org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod0baf1066bf0cbad7
org.junit.jupiter.engine.discovery.predicates.IsTestableMethod59a0b58a40803fe2
org.junit.jupiter.engine.execution.ConditionEvaluatorfba35d945644501d
org.junit.jupiter.engine.execution.ExecutableInvokerd64b9ef7a154ea95
org.junit.jupiter.engine.execution.ExtensionValuesStore2517eb7835ca6234
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext65be276e3a954a94
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builderdd69537274ccbffc
org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.State38616672a2502408
org.junit.jupiter.engine.execution.ThrowableCollector92102b13561afdcf
org.junit.jupiter.engine.extension.DisabledConditiona967493a244329fa
org.junit.jupiter.engine.extension.ExtensionRegistry20b847fc63fd255b
org.junit.jupiter.engine.extension.RepeatedTestExtension1b7914cc8cf83732
org.junit.jupiter.engine.extension.TestInfoParameterResolver1b5b370a56807cae
org.junit.jupiter.engine.extension.TestReporterParameterResolver839c7c31b3ec6390
org.junit.platform.commons.logging.LoggerFactoryca4e1a8773fb9bed
org.junit.platform.commons.logging.LoggerFactory.DelegatingLoggerfd74fe2bb4edddd0
org.junit.platform.commons.util.AnnotationUtils32499b01efc144e8
org.junit.platform.commons.util.AnnotationUtils.AnnotationCacheKeyf04082259bc4a6ab
org.junit.platform.commons.util.ClassLoaderUtilsebded5f4ecebd9d8
org.junit.platform.commons.util.ClassUtils4982a89773933a90
org.junit.platform.commons.util.ClasspathScanner8425ab535628f6b9
org.junit.platform.commons.util.CollectionUtils59532d0e14166bc8
org.junit.platform.commons.util.Preconditionsf9207dc44e9d043d
org.junit.platform.commons.util.ReflectionUtils4d39f1033ae8eb12
org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalModeb267f8ac562d551e
org.junit.platform.commons.util.StringUtils3441f99393e2406b
org.junit.platform.engine.CompositeFilterd9d6482243cc9fa3
org.junit.platform.engine.CompositeFilter.175dffc26c0811b9d
org.junit.platform.engine.ExecutionRequested3835cc21e5a048
org.junit.platform.engine.Filterf932423ccd3b54bf
org.junit.platform.engine.FilterResultbf731bc7f64ce694
org.junit.platform.engine.TestDescriptore9574ca206cded64
org.junit.platform.engine.TestDescriptor.Typeeb97fc5a29f3ee3a
org.junit.platform.engine.TestExecutionResultabbab174d32db912
org.junit.platform.engine.TestExecutionResult.Statusda0473a55d05e891
org.junit.platform.engine.UniqueIdd23a178963e86ca7
org.junit.platform.engine.UniqueId.Segment54a2765f04c8cab7
org.junit.platform.engine.UniqueIdFormatc860ade4b928ce32
org.junit.platform.engine.discovery.ClassSelector228aa96d72021db2
org.junit.platform.engine.discovery.DiscoverySelectors8fefc6f1651cc3bd
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor2bfbf25c43491443
org.junit.platform.engine.support.descriptor.ClassSource9727c5551a632c40
org.junit.platform.engine.support.descriptor.EngineDescriptorb7dbf6dfb794516c
org.junit.platform.engine.support.descriptor.MethodSource0a1b0f0f95f17b77
org.junit.platform.engine.support.filter.ClasspathScanningSupport8223a02c2b9d8c89
org.junit.platform.engine.support.hierarchical.ExecutionTrackercbd37bfd76595d62
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine410766a2a07e44b1
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor7b43a475463d740e
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.1197b854565198af0
org.junit.platform.engine.support.hierarchical.Node8a5379bd364a5bf6
org.junit.platform.engine.support.hierarchical.Node.SkipResultd4551dfb7a813206
org.junit.platform.engine.support.hierarchical.SingleTestExecutord75bd01628eef7be
org.junit.platform.launcher.TestIdentifier225bb434f8f223e2
org.junit.platform.launcher.TestPlan9a2b71b572924cbc
org.junit.platform.launcher.core.DefaultDiscoveryRequest7dda3ad9a0e6a666
org.junit.platform.launcher.core.DefaultLauncher1a1f88af87dc6ec1
org.junit.platform.launcher.core.ExecutionListenerAdapter52cf3c3c69d4dfba
org.junit.platform.launcher.core.LauncherConfigurationParametersef55cacb5e47a902
org.junit.platform.launcher.core.LauncherDiscoveryRequestBuildere78a71b91c159e69
org.junit.platform.launcher.core.LauncherFactorye2bd67b8a72737b5
org.junit.platform.launcher.core.Root32394ca895f9fb9a
org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry7c054c4cf76cb0f6
org.junit.platform.launcher.core.ServiceLoaderTestExecutionListenerRegistry2299bac1075a6bf3
org.junit.platform.launcher.core.TestExecutionListenerRegistry190f4fb2b0ab865d
org.junit.platform.launcher.core.TestExecutionListenerRegistry.CompositeTestExecutionListener7538d2d860e1f9cb
org.junit.platform.launcher.listeners.LegacyReportingUtilsf3c021e100a54063
sun.text.resources.cldr.ext.FormatData_frcfe4ef8ff7428512
sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo888d0e6a76acb845
sun.util.resources.provider.LocaleDataProvider36ca29d59ab35e5c
\ No newline at end of file diff --git a/target/site/jacoco/jacoco.csv b/target/site/jacoco/jacoco.csv index 9aff09d..6466855 100644 --- a/target/site/jacoco/jacoco.csv +++ b/target/site/jacoco/jacoco.csv @@ -1,7 +1,8 @@ GROUP,PACKAGE,CLASS,INSTRUCTION_MISSED,INSTRUCTION_COVERED,BRANCH_MISSED,BRANCH_COVERED,LINE_MISSED,LINE_COVERED,COMPLEXITY_MISSED,COMPLEXITY_COVERED,METHOD_MISSED,METHOD_COVERED +spoteezer,musichub.util,PathValidation,0,17,0,0,0,4,0,2,0,2 +spoteezer,musichub.util,LogHandler,0,46,0,0,0,11,0,3,0,3 spoteezer,musichub.util,XMLHandler,72,0,0,0,25,0,4,0,4,0 spoteezer,musichub.business,Album,330,0,14,0,84,0,16,0,9,0 -spoteezer,musichub.business,PathValidation,0,17,0,0,0,4,0,2,0,2 spoteezer,musichub.business,SortByAuthor,9,0,0,0,2,0,2,0,2,0 spoteezer,musichub.business,NoAlbumFoundException,4,0,0,0,2,0,1,0,1,0 spoteezer,musichub.business,Language,49,0,0,0,6,0,3,0,3,0 @@ -16,4 +17,4 @@ spoteezer,musichub.business,SortByGenre,9,0,0,0,2,0,2,0,2,0 spoteezer,musichub.business,NoElementFoundException,4,0,0,0,2,0,1,0,1,0 spoteezer,musichub.business,Genre,56,0,0,0,6,0,3,0,3,0 spoteezer,musichub.business,AudioElement,266,0,11,0,72,0,16,0,9,0 -spoteezer,musichub.main,Main,588,0,40,0,199,0,29,0,3,0 +spoteezer,musichub.main,Main,605,0,41,0,206,0,30,0,3,0 diff --git a/target/site/jacoco/jacoco.xml b/target/site/jacoco/jacoco.xml index 5a939ee..2e46b55 100644 --- a/target/site/jacoco/jacoco.xml +++ b/target/site/jacoco/jacoco.xml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/PathValidation.html b/target/site/jacoco/musichub.business/PathValidation.html deleted file mode 100644 index 3b58bb2..0000000 --- a/target/site/jacoco/musichub.business/PathValidation.html +++ /dev/null @@ -1 +0,0 @@ -PathValidation

PathValidation

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total0 of 17100 %0 of 0n/a020402
isPathValid(String)10100 %n/a010201
PathValidation()7100 %n/a010201
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/PathValidation.java.html b/target/site/jacoco/musichub.business/PathValidation.java.html deleted file mode 100644 index 4d22953..0000000 --- a/target/site/jacoco/musichub.business/PathValidation.java.html +++ /dev/null @@ -1,39 +0,0 @@ -PathValidation.java

PathValidation.java

package musichub.business;
-
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-
-/**
- * Class offering a path validation method.
- *
- * @author Aimeric ADJUTOR
- * @version 1.0
- */
-
-public final class PathValidation {
-
-    /**
-     * Method that just throws an AssertionError if the class is called
-     * @author Aimeric ADJUTOR
-     * @throws AssertionError you can't instantiate this class
-     */
-
-    public PathValidation() {
-        throw new AssertionError("You just can't instantiate this class.");
-    }
-
-    /**
-     * Method that checks the validity of a given path
-     *
-     * @param inputPath the path given by the user
-     * @return a boolean
-     */
-
-    public static boolean isPathValid(String inputPath) {
-        Path path = Paths.get(inputPath);
-        return Files.exists(path);
-    }
-
-}
-
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/index.html b/target/site/jacoco/musichub.business/index.html index 178e60b..421752c 100644 --- a/target/site/jacoco/musichub.business/index.html +++ b/target/site/jacoco/musichub.business/index.html @@ -1 +1 @@ -musichub.business

musichub.business

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 063 of 2 0800 %169 of 1690 %17217449950381831516
MusicHub8030 %1140 %7979195195222211
Album3300 %140 %161684849911
AudioElement2660 %110 %161672729911
PlayList2020 %140 %141453537711
AudioBook1640 %100 %171739399911
Song1050 %60 %121226267711
Genre560 %n/a33663311
Language490 %n/a33663311
Category490 %n/a33663311
SortByAuthor90 %n/a22222211
SortByDate90 %n/a22222211
SortByGenre90 %n/a22222211
NoAlbumFoundException0 %n/a11221111
NoPlayListFoundException0 %n/a11221111
NoElementFoundException0 %n/a11221111
PathValidation17100 %n/a02040201
\ No newline at end of file +musichub.business

musichub.business

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 063 of 2 0630 %169 of 1690 %17217249949981811515
MusicHub8030 %1140 %7979195195222211
Album3300 %140 %161684849911
AudioElement2660 %110 %161672729911
PlayList2020 %140 %141453537711
AudioBook1640 %100 %171739399911
Song1050 %60 %121226267711
Genre560 %n/a33663311
Language490 %n/a33663311
Category490 %n/a33663311
SortByAuthor90 %n/a22222211
SortByDate90 %n/a22222211
SortByGenre90 %n/a22222211
NoAlbumFoundException0 %n/a11221111
NoPlayListFoundException0 %n/a11221111
NoElementFoundException0 %n/a11221111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/index.source.html b/target/site/jacoco/musichub.business/index.source.html index 45a5b59..13ddd53 100644 --- a/target/site/jacoco/musichub.business/index.source.html +++ b/target/site/jacoco/musichub.business/index.source.html @@ -1 +1 @@ -musichub.business

musichub.business

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 063 of 2 0800 %169 of 1690 %17217449950381831516
MusicHub.java8300 %1140 %8585201201282844
Album.java3300 %140 %161684849911
AudioElement.java2660 %110 %161672729911
PlayList.java2020 %140 %141453537711
AudioBook.java1640 %100 %171739399911
Song.java1050 %60 %121226267711
Genre.java560 %n/a33663311
Language.java490 %n/a33663311
Category.java490 %n/a33663311
NoAlbumFoundException.java0 %n/a11221111
NoPlayListFoundException.java0 %n/a11221111
NoElementFoundException.java0 %n/a11221111
PathValidation.java17100 %n/a02040201
\ No newline at end of file +musichub.business

musichub.business

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 063 of 2 0630 %169 of 1690 %17217249949981811515
MusicHub.java8300 %1140 %8585201201282844
Album.java3300 %140 %161684849911
AudioElement.java2660 %110 %161672729911
PlayList.java2020 %140 %141453537711
AudioBook.java1640 %100 %171739399911
Song.java1050 %60 %121226267711
Genre.java560 %n/a33663311
Language.java490 %n/a33663311
Category.java490 %n/a33663311
NoAlbumFoundException.java0 %n/a11221111
NoPlayListFoundException.java0 %n/a11221111
NoElementFoundException.java0 %n/a11221111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.main/Main.html b/target/site/jacoco/musichub.main/Main.html index de45b84..ea5f0da 100644 --- a/target/site/jacoco/musichub.main/Main.html +++ b/target/site/jacoco/musichub.main/Main.html @@ -1 +1 @@ -Main

Main

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total588 of 5880 %40 of 400 %292919919933
main(String[])5480 %400 %272718518511
printAvailableCommands()370 %n/a11131311
Main()0 %n/a111111
\ No newline at end of file +Main

Main

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total605 of 6050 %41 of 410 %303020620633
main(String[])5620 %410 %282819119111
printAvailableCommands()400 %n/a11141411
Main()0 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.main/Main.java.html b/target/site/jacoco/musichub.main/Main.java.html index df39af0..7ec6a41 100644 --- a/target/site/jacoco/musichub.main/Main.java.html +++ b/target/site/jacoco/musichub.main/Main.java.html @@ -1,6 +1,7 @@ Main.java

Main.java

package musichub.main;
 
 import musichub.business.*;
+import musichub.util.LogHandler;
 
 import javax.sound.sampled.LineUnavailableException;
 import javax.sound.sampled.UnsupportedAudioFileException;
@@ -9,258 +10,267 @@ import java.util.Iterator;
 import java.util.List;
 import java.util.Scanner;
 
-import static musichub.business.PathValidation.isPathValid;
+import static musichub.util.PathValidation.isPathValid;
 
-public class Main {
+public class Main {
     public static void main(String[] args) throws UnsupportedAudioFileException, IOException, LineUnavailableException {
 
-        MusicHub theHub = new MusicHub();
+        MusicHub theHub = new MusicHub();
 
-        System.out.println("Type h for available commands");
+        System.out.println("Type h for available commands");
 
 
-        Scanner scan = new Scanner(System.in);
-        String choice = scan.nextLine();
+        Scanner scan = new Scanner(System.in);
+        String choice = scan.nextLine();
 
         String albumTitle;
 
-        if (choice.length() == 0) System.exit(0);
+        if (choice.length() == 0) System.exit(0);
 
-        while (!choice.equals("")) { //if the user puts nothing, quit the loop/system
-            switch (choice.charAt(0)) {
+        while (!choice.equals("")) { //if the user puts nothing, quit the loop/system
+            switch (choice.charAt(0)) {
                 case 'q': //added the option directly in the switch instead of the loop
-                    System.exit(0);
+                    System.exit(0);
                 case 'h':
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case 't':
                     //album titles, ordered by date
-                    System.out.println(theHub.getAlbumsTitlesSortedByDate());
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                    System.out.println(theHub.getAlbumsTitlesSortedByDate());
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case 'g':
                     //songs of an album, sorted by genre
-                    System.out.println("Songs of an album sorted by genre will be displayed; enter the album name, available albums are:");
-                    System.out.println(theHub.getAlbumsTitlesSortedByDate());
+                    System.out.println("Songs of an album sorted by genre will be displayed; enter the album name, available albums are:");
+                    System.out.println(theHub.getAlbumsTitlesSortedByDate());
 
-                    albumTitle = scan.nextLine();
+                    albumTitle = scan.nextLine();
                     try {
-                    	List<Song> songs = theHub.getAlbumSongsSortedByGenre(albumTitle);
-                        System.out.println(songs);
-                    } catch (NoAlbumFoundException ex) {
-                        System.out.println("No album found with the requested title " + ex.getMessage());
-                    }
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                    	List<Song> songs = theHub.getAlbumSongsSortedByGenre(albumTitle);
+                        System.out.println(songs);
+                    } catch (NoAlbumFoundException ex) {
+                        System.out.println("No album found with the requested title " + ex.getMessage());
+                    }
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case 'd':
                     //songs of an album
-                    System.out.println("Songs of an album will be displayed; enter the album name, available albums are:");
-                    System.out.println(theHub.getAlbumsTitlesSortedByDate());
+                    System.out.println("Songs of an album will be displayed; enter the album name, available albums are:");
+                    System.out.println(theHub.getAlbumsTitlesSortedByDate());
 
-                    albumTitle = scan.nextLine();
+                    albumTitle = scan.nextLine();
                     try {
-                    	List<AudioElement> songs = theHub.getAlbumSongs(albumTitle);
-                        System.out.println(theHub.getAlbumSongs(albumTitle));
-                        String song = scan.nextLine();
-                        theHub.getAudioElement(songs, song);
-                    } catch (NoAlbumFoundException ex) {
-                        System.out.println("No album found with the requested title " + ex.getMessage());
-                    }
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                    	List<AudioElement> songs = theHub.getAlbumSongs(albumTitle);
+                        System.out.println(theHub.getAlbumSongs(albumTitle));
+                        String song = scan.nextLine();
+                        theHub.getAudioElement(songs, song);
+                    } catch (NoAlbumFoundException ex) {
+                        System.out.println("No album found with the requested title " + ex.getMessage());
+                    }
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case 'u':
                     //audiobooks ordered by author
-                    System.out.println(theHub.getAudiobooksTitlesSortedByAuthor());
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                    System.out.println(theHub.getAudiobooksTitlesSortedByAuthor());
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case 'c':
                     // add a new song
-                    System.out.println("Enter a new song: ");
-                    System.out.println("Song title: ");
-                    String title = scan.nextLine();
-                    System.out.println("Song genre (jazz, classic, hiphop, rock, pop, rap):");
-                    String genre = scan.nextLine();
-                    System.out.println("Song artist: ");
-                    String artist = scan.nextLine();
-                    System.out.println("Song length in seconds: ");
-                    int length = Integer.parseInt(scan.nextLine());
+                    System.out.println("Enter a new song: ");
+                    System.out.println("Song title: ");
+                    String title = scan.nextLine();
+                    System.out.println("Song genre (jazz, classic, hiphop, rock, pop, rap):");
+                    String genre = scan.nextLine();
+                    System.out.println("Song artist: ");
+                    String artist = scan.nextLine();
+                    System.out.println("Song length in seconds: ");
+                    int length = Integer.parseInt(scan.nextLine());
 
-                    System.out.println("Song content: ");
-                    String content = scan.nextLine();
-                    if (!isPathValid(content)) {
-                        System.out.println("The music file was not found with the path you've provided.\nType h for available commands");
-                        choice = scan.nextLine();
-                        break;
+                    System.out.println("Song content: ");
+                    String content = scan.nextLine();
+                    if (!isPathValid(content)) {
+                        String logMsg = "The music file was not found with the path you've provided.";
+                        LogHandler.write(logMsg, "WARNING"); //write a line in the log file
+                        System.out.println(logMsg + "\nType h for available commands");
+                        choice = scan.nextLine();
+                        break;
                     }
 
-                    Song s = new Song(title, artist, length, content, genre);
-                    theHub.addElement(s);
-                    System.out.println("New element list: ");
-                    Iterator<AudioElement> it = theHub.elements();
-                    while (it.hasNext()) System.out.println(it.next().getTitle());
-                    System.out.println("Song created!");
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                    Song s = new Song(title, artist, length, content, genre);
+                    theHub.addElement(s);
+                    System.out.println("New element list: ");
+                    Iterator<AudioElement> it = theHub.elements();
+                    while (it.hasNext()) System.out.println(it.next().getTitle());
+                    System.out.println("Song created!");
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case 'a':
                     // add a new album
-                    System.out.println("Enter a new album: ");
-                    System.out.println("Album title: ");
-                    String aTitle = scan.nextLine();
-                    System.out.println("Album artist: ");
-                    String aArtist = scan.nextLine();
-                    System.out.println("Album length in seconds: ");
-                    int aLength = Integer.parseInt(scan.nextLine());
-                    System.out.println("Album date as YYYY-DD-MM: ");
-                    String aDate = scan.nextLine();
-                    Album a = new Album(aTitle, aArtist, aLength, aDate);
-                    theHub.addAlbum(a);
-                    System.out.println("New list of albums: ");
-                    Iterator<Album> ita = theHub.albums();
-                    while (ita.hasNext()) System.out.println(ita.next().getTitle());
-                    System.out.println("Album created!");
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                    System.out.println("Enter a new album: ");
+                    System.out.println("Album title: ");
+                    String aTitle = scan.nextLine();
+                    System.out.println("Album artist: ");
+                    String aArtist = scan.nextLine();
+                    System.out.println("Album length in seconds: ");
+                    int aLength = Integer.parseInt(scan.nextLine());
+                    System.out.println("Album date as YYYY-DD-MM: ");
+                    String aDate = scan.nextLine();
+                    Album a = new Album(aTitle, aArtist, aLength, aDate);
+                    theHub.addAlbum(a);
+                    System.out.println("New list of albums: ");
+                    Iterator<Album> ita = theHub.albums();
+                    while (ita.hasNext()) System.out.println(ita.next().getTitle());
+                    System.out.println("Album created!");
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case '+':
                     //add a song to an album:
-                    System.out.println("Add an existing song to an existing album");
-                    System.out.println("Type the name of the song you wish to add. Available songs: ");
-                    Iterator<AudioElement> itae = theHub.elements();
-                    while (itae.hasNext()) {
-                        AudioElement ae = itae.next();
-                        if (ae instanceof Song) System.out.println(ae.getTitle());
-                    }
-                    String songTitle = scan.nextLine();
+                    System.out.println("Add an existing song to an existing album");
+                    System.out.println("Type the name of the song you wish to add. Available songs: ");
+                    Iterator<AudioElement> itae = theHub.elements();
+                    while (itae.hasNext()) {
+                        AudioElement ae = itae.next();
+                        if (ae instanceof Song) System.out.println(ae.getTitle());
+                    }
+                    String songTitle = scan.nextLine();
 
-                    System.out.println("Type the name of the album you wish to enrich. Available albums: ");
-                    Iterator<Album> ait = theHub.albums();
-                    while (ait.hasNext()) {
-                        Album al = ait.next();
-                        System.out.println(al.getTitle());
-                    }
-                    String titleAlbum = scan.nextLine();
+                    System.out.println("Type the name of the album you wish to enrich. Available albums: ");
+                    Iterator<Album> ait = theHub.albums();
+                    while (ait.hasNext()) {
+                        Album al = ait.next();
+                        System.out.println(al.getTitle());
+                    }
+                    String titleAlbum = scan.nextLine();
                     try {
-                        theHub.addElementToAlbum(songTitle, titleAlbum);
-                    } catch (NoAlbumFoundException | NoElementFoundException ex) {
-                        System.out.println(ex.getMessage());
-                    }
-                    System.out.println("Song added to the album!");
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                        theHub.addElementToAlbum(songTitle, titleAlbum);
+                    } catch (NoAlbumFoundException | NoElementFoundException ex) {
+                        System.out.println(ex.getMessage());
+                    }
+                    System.out.println("Song added to the album!");
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case 'l':
                     // add a new audiobook
-                    System.out.println("Enter a new audiobook: ");
-                    System.out.println("AudioBook title: ");
-                    String bTitle = scan.nextLine();
-                    System.out.println("AudioBook category (youth, novel, theater, documentary, speech)");
-                    String bCategory = scan.nextLine();
-                    System.out.println("AudioBook artist: ");
-                    String bArtist = scan.nextLine();
-                    System.out.println("AudioBook length in seconds: ");
-                    int bLength = Integer.parseInt(scan.nextLine());
-                    System.out.println("AudioBook content: ");
-                    String bContent = scan.nextLine();
-                    System.out.println("AudioBook language (french, english, italian, spanish, german)");
-                    String bLanguage = scan.nextLine();
-                    AudioBook b = new AudioBook(bTitle, bArtist, bLength, bContent, bLanguage, bCategory);
-                    theHub.addElement(b);
-                    System.out.println("Audiobook created! New element list: ");
-                    Iterator<AudioElement> itl = theHub.elements();
-                    while (itl.hasNext()) System.out.println(itl.next().getTitle());
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                    System.out.println("Enter a new audiobook: ");
+                    System.out.println("AudioBook title: ");
+                    String bTitle = scan.nextLine();
+                    System.out.println("AudioBook category (youth, novel, theater, documentary, speech)");
+                    String bCategory = scan.nextLine();
+                    System.out.println("AudioBook artist: ");
+                    String bArtist = scan.nextLine();
+                    System.out.println("AudioBook length in seconds: ");
+                    int bLength = Integer.parseInt(scan.nextLine());
+                    System.out.println("AudioBook content: ");
+                    String bContent = scan.nextLine();
+                    System.out.println("AudioBook language (french, english, italian, spanish, german)");
+                    String bLanguage = scan.nextLine();
+                    AudioBook b = new AudioBook(bTitle, bArtist, bLength, bContent, bLanguage, bCategory);
+                    theHub.addElement(b);
+                    System.out.println("Audiobook created! New element list: ");
+                    Iterator<AudioElement> itl = theHub.elements();
+                    while (itl.hasNext()) System.out.println(itl.next().getTitle());
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case 'p':
                     //create a new playlist from existing elements
-                    System.out.println("Add an existing song or audiobook to a new playlist");
-                    System.out.println("Existing playlists:");
-                    Iterator<PlayList> itpl = theHub.playlists();
-                    while (itpl.hasNext()) {
-                        PlayList pl = itpl.next();
-                        System.out.println(pl.getTitle());
-                    }
-                    System.out.println("Type the name of the playlist you wish to create:");
-                    String playListTitle = scan.nextLine();
-                    PlayList pl = new PlayList(playListTitle);
-                    theHub.addPlaylist(pl);
-                    System.out.println("Available elements: ");
+                    System.out.println("Add an existing song or audiobook to a new playlist");
+                    System.out.println("Existing playlists:");
+                    Iterator<PlayList> itpl = theHub.playlists();
+                    while (itpl.hasNext()) {
+                        PlayList pl = itpl.next();
+                        System.out.println(pl.getTitle());
+                    }
+                    System.out.println("Type the name of the playlist you wish to create:");
+                    String playListTitle = scan.nextLine();
+                    PlayList pl = new PlayList(playListTitle);
+                    theHub.addPlaylist(pl);
+                    System.out.println("Available elements: ");
 
-                    Iterator<AudioElement> itael = theHub.elements();
-                    while (itael.hasNext()) {
-                        AudioElement ae = itael.next();
-                        System.out.println(ae.getTitle());
-                    }
-                    while (choice.charAt(0) != 'n') {
-                        System.out.println("Type the name of the audio element you wish to add or 'n' to exit:");
-                        String elementTitle = scan.nextLine();
+                    Iterator<AudioElement> itael = theHub.elements();
+                    while (itael.hasNext()) {
+                        AudioElement ae = itael.next();
+                        System.out.println(ae.getTitle());
+                    }
+                    while (choice.charAt(0) != 'n') {
+                        System.out.println("Type the name of the audio element you wish to add or 'n' to exit:");
+                        String elementTitle = scan.nextLine();
                         try {
-                            theHub.addElementToPlayList(elementTitle, playListTitle);
-                        } catch (NoPlayListFoundException | NoElementFoundException ex) {
-                            System.out.println(ex.getMessage());
-                        }
+                            theHub.addElementToPlayList(elementTitle, playListTitle);
+                        } catch (NoPlayListFoundException | NoElementFoundException ex) {
+                            System.out.println(ex.getMessage());
+                        }
 
-                        System.out.println("Type y to add a new one, n to end");
-                        choice = scan.nextLine();
-                    }
-                    System.out.println("Playlist created!");
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                        System.out.println("Type y to add a new one, n to end");
+                        choice = scan.nextLine();
+                    }
+                    System.out.println("Playlist created!");
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case '-':
                     //delete a playlist
-                    System.out.println("Delete an existing playlist. Available playlists:");
-                    Iterator<PlayList> itp = theHub.playlists();
-                    while (itp.hasNext()) {
-                        PlayList p = itp.next();
-                        System.out.println(p.getTitle());
-                    }
-                    String plTitle = scan.nextLine();
+                    System.out.println("Delete an existing playlist. Available playlists:");
+                    Iterator<PlayList> itp = theHub.playlists();
+                    while (itp.hasNext()) {
+                        PlayList p = itp.next();
+                        System.out.println(p.getTitle());
+                    }
+                    String plTitle = scan.nextLine();
                     try {
-                        theHub.deletePlayList(plTitle);
-                    } catch (NoPlayListFoundException ex) {
-                        System.out.println(ex.getMessage());
-                    }
-                    System.out.println("Playlist deleted!");
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                        theHub.deletePlayList(plTitle);
+                    } catch (NoPlayListFoundException ex) {
+                        System.out.println(ex.getMessage());
+                    }
+                    System.out.println("Playlist deleted!");
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
                 case 's':
                     //save elements, albums, playlists
-                    theHub.saveElements();
-                    theHub.saveAlbums();
-                    theHub.savePlayLists();
-                    System.out.println("Elements, albums and playlists saved!");
-                    printAvailableCommands();
-                    choice = scan.nextLine();
-                    break;
+                    theHub.saveElements();
+                    theHub.saveAlbums();
+                    theHub.savePlayLists();
+                    System.out.println("Elements, albums and playlists saved!");
+                    printAvailableCommands();
+                    choice = scan.nextLine();
+                    break;
+                case 'o':
+                    //consult the app logs
+                    LogHandler.read();
+                    System.out.println("Type h for available commands");
+                    choice = scan.nextLine();
+                    break;
                 default:
 
-                    break;
+                    break;
             }
         }
-        scan.close();
-    }
+        scan.close();
+    }
 
     private static void printAvailableCommands() {
-        System.out.println("t: display the album titles, ordered by date");
-        System.out.println("g: display songs of an album, ordered by genre");
-        System.out.println("d: display songs of an album");
-        System.out.println("u: display audiobooks ordered by author");
-        System.out.println("c: add a new song");
-        System.out.println("a: add a new album");
-        System.out.println("+: add a song to an album");
-        System.out.println("l: add a new audiobook");
-        System.out.println("p: create a new playlist from existing songs and audio books");
-        System.out.println("-: delete an existing playlist");
-        System.out.println("s: save elements, albums, playlists");
-        System.out.println("q: quit program");
-    }
+        System.out.println("t: display the album titles, ordered by date");
+        System.out.println("g: display songs of an album, ordered by genre");
+        System.out.println("d: display songs of an album");
+        System.out.println("u: display audiobooks ordered by author");
+        System.out.println("c: add a new song");
+        System.out.println("a: add a new album");
+        System.out.println("+: add a song to an album");
+        System.out.println("l: add a new audiobook");
+        System.out.println("p: create a new playlist from existing songs and audio books");
+        System.out.println("-: delete an existing playlist");
+        System.out.println("s: save elements, albums, playlists");
+        System.out.println("o: consult the app logs");
+        System.out.println("q: quit program");
+    }
 }
 
\ No newline at end of file diff --git a/target/site/jacoco/musichub.main/index.html b/target/site/jacoco/musichub.main/index.html index c4e995d..191e4db 100644 --- a/target/site/jacoco/musichub.main/index.html +++ b/target/site/jacoco/musichub.main/index.html @@ -1 +1 @@ -musichub.main

musichub.main

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total588 of 5880 %40 of 400 %29291991993311
Main5880 %400 %29291991993311
\ No newline at end of file +musichub.main

musichub.main

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total605 of 6050 %41 of 410 %30302062063311
Main6050 %410 %30302062063311
\ No newline at end of file diff --git a/target/site/jacoco/musichub.main/index.source.html b/target/site/jacoco/musichub.main/index.source.html index 189774f..654a78a 100644 --- a/target/site/jacoco/musichub.main/index.source.html +++ b/target/site/jacoco/musichub.main/index.source.html @@ -1 +1 @@ -musichub.main

musichub.main

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total588 of 5880 %40 of 400 %29291991993311
Main.java5880 %400 %29291991993311
\ No newline at end of file +musichub.main

musichub.main

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total605 of 6050 %41 of 410 %30302062063311
Main.java6050 %410 %30302062063311
\ No newline at end of file diff --git a/target/site/jacoco/musichub.util/index.html b/target/site/jacoco/musichub.util/index.html index 1194ec1..20f0d2b 100644 --- a/target/site/jacoco/musichub.util/index.html +++ b/target/site/jacoco/musichub.util/index.html @@ -1 +1 @@ -musichub.util

musichub.util

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total72 of 720 %0 of 0n/a4425254411
XMLHandler720 %n/a4425254411
\ No newline at end of file +musichub.util

musichub.util

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total72 of 13546 %0 of 0n/a4925404913
XMLHandler720 %n/a4425254411
LogHandler46100 %n/a030110301
PathValidation17100 %n/a02040201
\ No newline at end of file diff --git a/target/site/jacoco/musichub.util/index.source.html b/target/site/jacoco/musichub.util/index.source.html index e6f6dba..f8bbd4e 100644 --- a/target/site/jacoco/musichub.util/index.source.html +++ b/target/site/jacoco/musichub.util/index.source.html @@ -1 +1 @@ -musichub.util

musichub.util

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total72 of 720 %0 of 0n/a4425254411
XMLHandler.java720 %n/a4425254411
\ No newline at end of file +musichub.util

musichub.util

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total72 of 13546 %0 of 0n/a4925404913
XMLHandler.java720 %n/a4425254411
LogHandler.java46100 %n/a030110301
PathValidation.java17100 %n/a02040201
\ No newline at end of file -- cgit v1.2.3