From e9ee951e570c441151385d1ccd8c4230abf704ca Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sat, 26 Jun 2021 14:32:12 +0200 Subject: Updated javadoc, added jacoco and the necessary JUnit for this feature. --- target/site/jacoco/musichub.business/Genre.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 target/site/jacoco/musichub.business/Genre.html (limited to 'target/site/jacoco/musichub.business/Genre.html') diff --git a/target/site/jacoco/musichub.business/Genre.html b/target/site/jacoco/musichub.business/Genre.html new file mode 100644 index 0000000..88e0ecd --- /dev/null +++ b/target/site/jacoco/musichub.business/Genre.html @@ -0,0 +1 @@ +Genre

Genre

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total56 of 560 %0 of 0n/a336633
static {...}450 %n/a112211
Genre(String, int, String)80 %n/a113311
getGenre()30 %n/a111111
\ No newline at end of file -- cgit v1.2.3 From a9f46e2164f0d9ce416f34ebcb68d532de98cdb2 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sun, 27 Jun 2021 11:55:45 +0200 Subject: Starting Song tests --- log/spoteezer.log | 14 +++++- src/test/java/musichub/business/SongTest.java | 46 ++++++++++++++++++ target/jacoco.exec | Bin 14814 -> 15029 bytes .../default-testCompile/createdFiles.lst | 1 + .../testCompile/default-testCompile/inputFiles.lst | 1 + target/site/jacoco/index.html | 2 +- target/site/jacoco/jacoco-sessions.html | 2 +- target/site/jacoco/jacoco.csv | 6 +-- target/site/jacoco/jacoco.xml | 2 +- .../jacoco/musichub.business/AudioElement.html | 2 +- .../musichub.business/AudioElement.java.html | 54 ++++++++++----------- target/site/jacoco/musichub.business/Genre.html | 2 +- .../site/jacoco/musichub.business/Genre.java.html | 12 ++--- target/site/jacoco/musichub.business/Song.html | 2 +- .../site/jacoco/musichub.business/Song.java.html | 28 +++++------ target/site/jacoco/musichub.business/index.html | 2 +- .../jacoco/musichub.business/index.source.html | 2 +- 17 files changed, 119 insertions(+), 59 deletions(-) create mode 100644 src/test/java/musichub/business/SongTest.java (limited to 'target/site/jacoco/musichub.business/Genre.html') diff --git a/log/spoteezer.log b/log/spoteezer.log index e18095f..3819cab 100644 --- a/log/spoteezer.log +++ b/log/spoteezer.log @@ -1,4 +1,16 @@ [yyyy-MM-dd HH:mm:ss.SSS] TYPE: Message [2021-06-26 21:37:09.507] WARNING: The music file was not found with the path you've provided. [2021-06-26 21:45:11.453] WARNING: The music file was not found with the path you've provided. -[2021-06-27 11:17:47.927] TEST: JUnit test \ No newline at end of file +[2021-06-27 11:17:47.927] TEST: JUnit test +[2021-06-27 11:23:12.311] TEST: JUnit test +[2021-06-27 11:28:46.126] TEST: JUnit test +[2021-06-27 11:35:19.141] TEST: JUnit test +[2021-06-27 11:42:00.359] TEST: JUnit test +[2021-06-27 11:43:59.111] TEST: JUnit test +[2021-06-27 11:44:55.871] TEST: JUnit test +[2021-06-27 11:49:06.256] TEST: JUnit test +[2021-06-27 11:49:28.005] TEST: JUnit test +[2021-06-27 11:50:01.657] TEST: JUnit test +[2021-06-27 11:50:09.721] TEST: JUnit test +[2021-06-27 11:53:44.338] TEST: JUnit test +[2021-06-27 11:53:54.691] TEST: JUnit test \ No newline at end of file diff --git a/src/test/java/musichub/business/SongTest.java b/src/test/java/musichub/business/SongTest.java new file mode 100644 index 0000000..b25b6d2 --- /dev/null +++ b/src/test/java/musichub/business/SongTest.java @@ -0,0 +1,46 @@ +package musichub.business; + +import musichub.util.XMLHandler; +import org.junit.jupiter.api.Test; +import org.w3c.dom.Element; +import org.w3c.dom.NodeList; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotEquals; + +public class SongTest { + String title = "Side To Side"; + String artist = "Ariana Grande"; + int length = 186; + String uid = "66d277ca-cbc4-471c-a07e-082363375bcc"; + String content = "Song/Side_To_Side.wav"; + String genre = "rock"; + + @Test + void testSongClasses() { + Song song_uuid = new Song(title, artist, length, uid, content, genre); + Song song = new Song(title, artist, length, content, genre); + + } + + @Test + void testSongXml() { + final String DIR = System.getProperty("user.dir"); + final String ELEMENTS_FILE_PATH = DIR + "/files/elements.xml"; + final XMLHandler xmlHandler = new XMLHandler(); + NodeList audioelementsNodes = xmlHandler.parseXMLFile(ELEMENTS_FILE_PATH); + Element audioElement = (Element) audioelementsNodes.item(1); + Song song_xml = new Song(audioElement); + } + + @Test + void testGetGenre() { + assertEquals(new Song(title, artist, length, content, genre).getGenre(), "rock"); + assertNotEquals(new Song(title, artist, length, content, genre).getGenre(), "pop"); + } + + @Test + void testSetGenre() { + // Not Implemented Yet + } +} diff --git a/target/jacoco.exec b/target/jacoco.exec index 994c699..a4fab83 100644 Binary files a/target/jacoco.exec and b/target/jacoco.exec differ diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst index 5941d84..cf268f6 100644 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst @@ -1,3 +1,4 @@ musichub\util\XMLHandlerTest.class musichub\util\PathValidationTest.class +musichub\business\SongTest.class musichub\util\LogHandlerTest.class diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst index 8cbb196..0b9852b 100644 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -1,3 +1,4 @@ C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\util\XMLHandlerTest.java C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\util\LogHandlerTest.java C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\util\PathValidationTest.java +C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\business\SongTest.java diff --git a/target/site/jacoco/index.html b/target/site/jacoco/index.html index d0737be..5c3dabe 100644 --- a/target/site/jacoco/index.html +++ b/target/site/jacoco/index.html @@ -1 +1 @@ -spoteezer

spoteezer

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 674 of 2 8034 %210 of 2100 %20221170974584931619
musichub.business2 0630 %1690 %17217249949981811515
musichub.main6050 %410 %30302062063311
musichub.util12995 %n/a094400903
\ No newline at end of file +spoteezer

spoteezer

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 471 of 2 80311 %206 of 2101 %19021166474573931319
musichub.business1 8602039 %16542 %16017245449970811215
musichub.main6050 %410 %30302062063311
musichub.util12995 %n/a094400903
\ No newline at end of file diff --git a/target/site/jacoco/jacoco-sessions.html b/target/site/jacoco/jacoco-sessions.html index f1c42c1..cd7b35e 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-636bf65527 juin 2021, 11:17:4727 juin 2021, 11:17:48

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

ClassId
java.sql.Dated25610486aed3f31
java.sql.Timestampb848522074600355
musichub.util.LogHandler09990b742e8d897c
musichub.util.LogHandlerTest49f271871a8ef7bf
musichub.util.PathValidation538d6ca0ac9478ad
musichub.util.PathValidationTest46821ddd8d6598d1
musichub.util.XMLHandlerab2fa919a374fd87
musichub.util.XMLHandlerTest4852491d32ffd349
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.nio.cs.ext.AbstractCharsetProvider9a72c9e39fdac365
sun.nio.cs.ext.Big57f7799a4239d3d01
sun.nio.cs.ext.EUC_CNdaed57327edf3023
sun.nio.cs.ext.EUC_JPf0c718c92ac0cabc
sun.nio.cs.ext.EUC_KR3d50c0e84dcd54e6
sun.nio.cs.ext.EUC_TW4fbeba8ab3b0661e
sun.nio.cs.ext.ExtendedCharsets7715d4380ab405a8
sun.nio.cs.ext.IBM037b9b8c9ec2e056149
sun.nio.cs.ext.IBM1047e368b4c70681ed2e
sun.nio.cs.ext.IBM2777b5b55809ca60de9
sun.nio.cs.ext.IBM278326393dad6851723
sun.nio.cs.ext.IBM2809d9334ffd18e4e40
sun.nio.cs.ext.IBM28401c4a83f23f1b53d
sun.nio.cs.ext.IBM285be059d13431c468f
sun.nio.cs.ext.IBM29709fd5ed2f7ce33cb
sun.nio.cs.ext.IBM420dfa9e617bd0f689b
sun.nio.cs.ext.IBM424edd26be1d2ed5a00
sun.nio.cs.ext.IBM50058b3c90789d546a5
sun.nio.cs.ext.IBM8604bc938afb837212f
sun.nio.cs.ext.IBM870ad9dcff6cd8f8661
sun.nio.cs.ext.IBM871ef144f207fc359f5
sun.nio.cs.ext.IBM918a83d0db73f26c654
sun.nio.cs.ext.ISO202292bf931cea04ba69
sun.nio.cs.ext.ISO2022_JP4839eaacbb85c150
sun.nio.cs.ext.ISO2022_KRe2e5b9cbb3d44823
sun.nio.cs.ext.ISO_8859_11cb3ce4182f6717e0
sun.nio.cs.ext.ISO_8859_3550e89cba9076937
sun.nio.cs.ext.ISO_8859_67e467e744bd3ad13
sun.nio.cs.ext.ISO_8859_8bb93af1e031c8697
sun.nio.cs.ext.MacRoman7007321b9dd9c10d
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-9912560327 juin 2021, 11:53:5427 juin 2021, 11:53:54

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

ClassId
java.sql.Dated25610486aed3f31
java.sql.Timestampb848522074600355
musichub.business.AudioElement776d9bc5621fe50f
musichub.business.Genreb2fbdfedce493822
musichub.business.Song44a87f7f8335b156
musichub.business.SongTestc0afccba36ce0d13
musichub.util.LogHandler09990b742e8d897c
musichub.util.LogHandlerTest49f271871a8ef7bf
musichub.util.PathValidation538d6ca0ac9478ad
musichub.util.PathValidationTest46821ddd8d6598d1
musichub.util.XMLHandlerab2fa919a374fd87
musichub.util.XMLHandlerTest4852491d32ffd349
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.AssertNotEqualsc7953c8abfcb95d0
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.nio.cs.ext.AbstractCharsetProvider9a72c9e39fdac365
sun.nio.cs.ext.Big57f7799a4239d3d01
sun.nio.cs.ext.EUC_CNdaed57327edf3023
sun.nio.cs.ext.EUC_JPf0c718c92ac0cabc
sun.nio.cs.ext.EUC_KR3d50c0e84dcd54e6
sun.nio.cs.ext.EUC_TW4fbeba8ab3b0661e
sun.nio.cs.ext.ExtendedCharsets7715d4380ab405a8
sun.nio.cs.ext.IBM037b9b8c9ec2e056149
sun.nio.cs.ext.IBM1047e368b4c70681ed2e
sun.nio.cs.ext.IBM2777b5b55809ca60de9
sun.nio.cs.ext.IBM278326393dad6851723
sun.nio.cs.ext.IBM2809d9334ffd18e4e40
sun.nio.cs.ext.IBM28401c4a83f23f1b53d
sun.nio.cs.ext.IBM285be059d13431c468f
sun.nio.cs.ext.IBM29709fd5ed2f7ce33cb
sun.nio.cs.ext.IBM420dfa9e617bd0f689b
sun.nio.cs.ext.IBM424edd26be1d2ed5a00
sun.nio.cs.ext.IBM50058b3c90789d546a5
sun.nio.cs.ext.IBM8604bc938afb837212f
sun.nio.cs.ext.IBM870ad9dcff6cd8f8661
sun.nio.cs.ext.IBM871ef144f207fc359f5
sun.nio.cs.ext.IBM918a83d0db73f26c654
sun.nio.cs.ext.ISO202292bf931cea04ba69
sun.nio.cs.ext.ISO2022_JP4839eaacbb85c150
sun.nio.cs.ext.ISO2022_KRe2e5b9cbb3d44823
sun.nio.cs.ext.ISO_8859_11cb3ce4182f6717e0
sun.nio.cs.ext.ISO_8859_3550e89cba9076937
sun.nio.cs.ext.ISO_8859_67e467e744bd3ad13
sun.nio.cs.ext.ISO_8859_8bb93af1e031c8697
sun.nio.cs.ext.MacRoman7007321b9dd9c10d
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 f93071b..ffeb027 100644 --- a/target/site/jacoco/jacoco.csv +++ b/target/site/jacoco/jacoco.csv @@ -9,12 +9,12 @@ spoteezer,musichub.business,Language,49,0,0,0,6,0,3,0,3,0 spoteezer,musichub.business,SortByDate,9,0,0,0,2,0,2,0,2,0 spoteezer,musichub.business,MusicHub,803,0,114,0,195,0,79,0,22,0 spoteezer,musichub.business,Category,49,0,0,0,6,0,3,0,3,0 -spoteezer,musichub.business,Song,105,0,6,0,26,0,12,0,7,0 +spoteezer,musichub.business,Song,50,55,4,2,12,14,6,6,2,5 spoteezer,musichub.business,NoPlayListFoundException,4,0,0,0,2,0,1,0,1,0 spoteezer,musichub.business,PlayList,202,0,14,0,53,0,14,0,7,0 spoteezer,musichub.business,AudioBook,164,0,10,0,39,0,17,0,9,0 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.business,Genre,0,56,0,0,0,6,0,3,0,3 +spoteezer,musichub.business,AudioElement,174,92,9,2,47,25,13,3,6,3 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 5ce5b9f..4532c47 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/AudioElement.html b/target/site/jacoco/musichub.business/AudioElement.html index 7a6e499..084f53f 100644 --- a/target/site/jacoco/musichub.business/AudioElement.html +++ b/target/site/jacoco/musichub.business/AudioElement.html @@ -1 +1 @@ -AudioElement

AudioElement

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total266 of 2660 %11 of 110 %1616727299
createXMLElement(Document, Element)790 %n/a11161611
manageAudioElement()680 %70 %66242411
AudioElement(Element)630 %40 %33141411
AudioElement(String, String, int, String, String)190 %n/a117711
AudioElement(String, String, int, String)180 %n/a117711
toString()100 %n/a111111
getUUID()30 %n/a111111
getArtist()30 %n/a111111
getTitle()30 %n/a111111
\ No newline at end of file +AudioElement

AudioElement

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total174 of 26634 %9 of 1118 %1316477269
createXMLElement(Document, Element)790 %n/a11161611
manageAudioElement()680 %70 %66242411
toString()100 %n/a111111
AudioElement(Element)85587 %2250 %2331401
getUUID()30 %n/a111111
getArtist()30 %n/a111111
getTitle()30 %n/a111111
AudioElement(String, String, int, String, String)19100 %n/a010701
AudioElement(String, String, int, String)18100 %n/a010701
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/AudioElement.java.html b/target/site/jacoco/musichub.business/AudioElement.java.html index 4401836..28d9e57 100644 --- a/target/site/jacoco/musichub.business/AudioElement.java.html +++ b/target/site/jacoco/musichub.business/AudioElement.java.html @@ -21,39 +21,39 @@ public abstract class AudioElement { protected UUID uuid; protected String content; - public AudioElement(String title, String artist, int lengthInSeconds, String id, String content) { - this.title = title; - this.artist = artist; - this.lengthInSeconds = lengthInSeconds; - this.uuid = UUID.fromString(id); - this.content = content; - } - - public AudioElement(String title, String artist, int lengthInSeconds, String content) { - this.title = title; - this.artist = artist; - this.lengthInSeconds = lengthInSeconds; - this.content = content; - this.uuid = UUID.randomUUID(); - } - - public AudioElement(Element xmlElement) { + public AudioElement(String title, String artist, int lengthInSeconds, String id, String content) { + this.title = title; + this.artist = artist; + this.lengthInSeconds = lengthInSeconds; + this.uuid = UUID.fromString(id); + this.content = content; + } + + public AudioElement(String title, String artist, int lengthInSeconds, String content) { + this.title = title; + this.artist = artist; + this.lengthInSeconds = lengthInSeconds; + this.content = content; + this.uuid = UUID.randomUUID(); + } + + public AudioElement(Element xmlElement) { { - title = xmlElement.getElementsByTagName("title").item(0).getTextContent(); - artist = xmlElement.getElementsByTagName("artist").item(0).getTextContent(); - lengthInSeconds = Integer.parseInt(xmlElement.getElementsByTagName("length").item(0).getTextContent()); - content = xmlElement.getElementsByTagName("content").item(0).getTextContent(); - String uuid = null; + title = xmlElement.getElementsByTagName("title").item(0).getTextContent(); + artist = xmlElement.getElementsByTagName("artist").item(0).getTextContent(); + lengthInSeconds = Integer.parseInt(xmlElement.getElementsByTagName("length").item(0).getTextContent()); + content = xmlElement.getElementsByTagName("content").item(0).getTextContent(); + String uuid = null; try { - uuid = xmlElement.getElementsByTagName("UUID").item(0).getTextContent(); + uuid = xmlElement.getElementsByTagName("UUID").item(0).getTextContent(); } catch (Exception ex) { System.out.println("Empty element UUID, will create a new one"); - } - if ((uuid == null) || (uuid.isEmpty())) + } + if ((uuid == null) || (uuid.isEmpty())) this.uuid = UUID.randomUUID(); - else this.uuid = UUID.fromString(uuid); + else this.uuid = UUID.fromString(uuid); } - } + } public UUID getUUID() { return this.uuid; diff --git a/target/site/jacoco/musichub.business/Genre.html b/target/site/jacoco/musichub.business/Genre.html index 88e0ecd..c7442d4 100644 --- a/target/site/jacoco/musichub.business/Genre.html +++ b/target/site/jacoco/musichub.business/Genre.html @@ -1 +1 @@ -Genre

Genre

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total56 of 560 %0 of 0n/a336633
static {...}450 %n/a112211
Genre(String, int, String)80 %n/a113311
getGenre()30 %n/a111111
\ No newline at end of file +Genre

Genre

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total0 of 56100 %0 of 0n/a030603
static {...}45100 %n/a010201
Genre(String, int, String)8100 %n/a010301
getGenre()3100 %n/a010101
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Genre.java.html b/target/site/jacoco/musichub.business/Genre.java.html index 021bb4b..e7196f9 100644 --- a/target/site/jacoco/musichub.business/Genre.java.html +++ b/target/site/jacoco/musichub.business/Genre.java.html @@ -1,15 +1,15 @@ Genre.java

Genre.java

package musichub.business;
 
-public enum Genre {
-    JAZZ("jazz"), CLASSIC("classic"), HIPHOP("hiphop"), ROCK("rock"), POP("pop"), RAP("rap");
+public enum Genre {
+    JAZZ("jazz"), CLASSIC("classic"), HIPHOP("hiphop"), ROCK("rock"), POP("pop"), RAP("rap");
     private final String genre;
 
-    Genre(String genre) {
-        this.genre = genre;
-    }
+    Genre(String genre) {
+        this.genre = genre;
+    }
 
     public String getGenre() {
-        return genre;
+        return genre;
     }
 }
 
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Song.html b/target/site/jacoco/musichub.business/Song.html index 4af18c3..6231425 100644 --- a/target/site/jacoco/musichub.business/Song.html +++ b/target/site/jacoco/musichub.business/Song.html @@ -1 +1 @@ -Song

Song

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total105 of 1050 %6 of 60 %1212262677
setGenre(String)330 %60 %668811
createXMLElement(Document, Element)290 %n/a117711
Song(Element)120 %n/a113311
Song(String, String, int, String, String, String)110 %n/a113311
Song(String, String, int, String, String)100 %n/a113311
toString()60 %n/a111111
getGenre()40 %n/a111111
\ No newline at end of file +Song

Song

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total50 of 10552 %4 of 633 %612122627
createXMLElement(Document, Element)290 %n/a117711
setGenre(String)151854 %4233 %464801
toString()60 %n/a111111
Song(Element)12100 %n/a010301
Song(String, String, int, String, String, String)11100 %n/a010301
Song(String, String, int, String, String)10100 %n/a010301
getGenre()4100 %n/a010101
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Song.java.html b/target/site/jacoco/musichub.business/Song.java.html index 4f7f01d..86ea1bf 100644 --- a/target/site/jacoco/musichub.business/Song.java.html +++ b/target/site/jacoco/musichub.business/Song.java.html @@ -8,34 +8,34 @@ public class Song extends AudioElement { private Genre genre; public Song(String title, String artist, int length, String uid, String content, String genre) { - super(title, artist, length, uid, content); - this.setGenre(genre); - } + super(title, artist, length, uid, content); + this.setGenre(genre); + } public Song(String title, String artist, int length, String content, String genre) { - super(title, artist, length, content); - this.setGenre(genre); - } + super(title, artist, length, content); + this.setGenre(genre); + } public Song(Element xmlElement) { - super(xmlElement); - this.setGenre(xmlElement.getElementsByTagName("genre").item(0).getTextContent()); - } + super(xmlElement); + this.setGenre(xmlElement.getElementsByTagName("genre").item(0).getTextContent()); + } public String getGenre() { - return genre.getGenre(); + return genre.getGenre(); } public void setGenre(String genre) { - switch (genre.toLowerCase()) { + switch (genre.toLowerCase()) { default -> this.genre = Genre.JAZZ; case "classic" -> this.genre = Genre.CLASSIC; case "hiphop" -> this.genre = Genre.HIPHOP; - case "rock" -> this.genre = Genre.ROCK; - case "pop" -> this.genre = Genre.POP; + case "rock" -> this.genre = Genre.ROCK; + case "pop" -> this.genre = Genre.POP; case "rap" -> this.genre = Genre.RAP; } - } + } public String toString() { return super.toString() + ", Genre = " + getGenre() + "\n"; diff --git a/target/site/jacoco/musichub.business/index.html b/target/site/jacoco/musichub.business/index.html index 421752c..9e86b79 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 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 +musichub.business

musichub.business

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total1 860 of 2 0639 %165 of 1692 %16017245449970811215
MusicHub8030 %1140 %7979195195222211
Album3300 %140 %161684849911
PlayList2020 %140 %141453537711
AudioElement1749234 %9218 %131647726901
AudioBook1640 %100 %171739399911
Song505552 %4233 %61212262701
Language490 %n/a33663311
Category490 %n/a33663311
SortByAuthor90 %n/a22222211
SortByDate90 %n/a22222211
SortByGenre90 %n/a22222211
NoAlbumFoundException0 %n/a11221111
NoPlayListFoundException0 %n/a11221111
NoElementFoundException0 %n/a11221111
Genre56100 %n/a03060301
\ 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 13ddd53..7ceb0fd 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 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 +musichub.business

musichub.business

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total1 860 of 2 0639 %165 of 1692 %16017245449970811215
MusicHub.java8300 %1140 %8585201201282844
Album.java3300 %140 %161684849911
PlayList.java2020 %140 %141453537711
AudioElement.java1749234 %9218 %131647726901
AudioBook.java1640 %100 %171739399911
Song.java505552 %4233 %61212262701
Language.java490 %n/a33663311
Category.java490 %n/a33663311
NoAlbumFoundException.java0 %n/a11221111
NoPlayListFoundException.java0 %n/a11221111
NoElementFoundException.java0 %n/a11221111
Genre.java56100 %n/a03060301
\ No newline at end of file -- cgit v1.2.3