From fa8c6e14b3f87407ea5805e35697acc4d93a8007 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sun, 27 Jun 2021 12:43:28 +0200 Subject: PlayList class covered at 84%. --- log/spoteezer.log | 29 ++----- src/test/java/musichub/business/PlayListTest.java | 54 ++++++++++++ src/test/java/musichub/business/SongTest.java | 4 +- target/jacoco.exec | Bin 15031 -> 15165 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 | 2 +- target/site/jacoco/jacoco.xml | 2 +- target/site/jacoco/musichub.business/PlayList.html | 2 +- .../jacoco/musichub.business/PlayList.java.html | 92 ++++++++++----------- target/site/jacoco/musichub.business/index.html | 2 +- .../jacoco/musichub.business/index.source.html | 2 +- 14 files changed, 117 insertions(+), 78 deletions(-) create mode 100644 src/test/java/musichub/business/PlayListTest.java diff --git a/log/spoteezer.log b/log/spoteezer.log index eab869b..b1ecf97 100644 --- a/log/spoteezer.log +++ b/log/spoteezer.log @@ -1,26 +1,9 @@ [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 -[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 -[2021-06-27 11:58:07.341] TEST: JUnit test -[2021-06-27 11:59:35.781] TEST: JUnit test -[2021-06-27 12:00:11.993] TEST: JUnit test -[2021-06-27 12:01:47.636] TEST: JUnit test -[2021-06-27 12:02:01.477] TEST: JUnit test -[2021-06-27 12:02:13.155] TEST: JUnit test -[2021-06-27 12:06:45.369] TEST: JUnit test -[2021-06-27 12:06:54.864] TEST: JUnit test -[2021-06-27 12:11:44.868] TEST: JUnit test -[2021-06-27 12:12:27.077] TEST: JUnit test \ No newline at end of file +[2021-06-27 12:21:37.507] TEST: JUnit test +[2021-06-27 12:26:02.741] TEST: JUnit test +[2021-06-27 12:28:05.542] TEST: JUnit test +[2021-06-27 12:28:41.186] TEST: JUnit test +[2021-06-27 12:31:42.777] TEST: JUnit test +[2021-06-27 12:40:20.609] TEST: JUnit test \ No newline at end of file diff --git a/src/test/java/musichub/business/PlayListTest.java b/src/test/java/musichub/business/PlayListTest.java new file mode 100644 index 0000000..9fe63cf --- /dev/null +++ b/src/test/java/musichub/business/PlayListTest.java @@ -0,0 +1,54 @@ +package musichub.business; + +import musichub.util.XMLHandler; +import org.junit.jupiter.api.Test; +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.NodeList; + +import java.util.ArrayList; +import java.util.UUID; + +import static org.junit.jupiter.api.Assertions.*; + +public class PlayListTest { + final String DIR = System.getProperty("user.dir"); + final String PLAYLISTS_FILE_PATH = DIR + "/files/playlists.xml"; + final XMLHandler xmlHandler = new XMLHandler(); + String title = "Side To Side"; + String id = "66d277ca-cbc4-471c-a07e-082363375bcc"; + ArrayList elementUUIDs = null; + + @Test + void testPlaylistClass() { + new PlayList(title, id, elementUUIDs); + new PlayList(title); + + } + + @Test + void testPlaylistClassXML() { + NodeList playlistNodes = xmlHandler.parseXMLFile(PLAYLISTS_FILE_PATH); + Element playlistElement = (Element) playlistNodes.item(1); + new PlayList(playlistElement); + } + + @Test + void testGetElements() { + assertNull(new PlayList(title, id, elementUUIDs).getElements()); + } + + @Test + void testGetTitle() { + assertEquals(new PlayList(title).getTitle(), "Side To Side"); + assertNotEquals(new PlayList(title).getTitle(), "God Is A Woman"); + } + + @Test + void testCreateXMLElement() { + PlayList p = new PlayList(title); + Document document = xmlHandler.createXMLDocument(); + Element root = document.createElement("playlists"); + p.createXMLElement(document, root); + } +} diff --git a/src/test/java/musichub/business/SongTest.java b/src/test/java/musichub/business/SongTest.java index 7022786..14f9af1 100644 --- a/src/test/java/musichub/business/SongTest.java +++ b/src/test/java/musichub/business/SongTest.java @@ -23,14 +23,14 @@ public class SongTest { @Test - void testSongClasses() { + void testSongClass() { new Song(title, artist, length, uid, content, genre); new Song(title, artist, length, content, genre); } @Test - void testSongXml() { + void testSongClassXML() { NodeList audioelementsNodes = xmlHandler.parseXMLFile(ELEMENTS_FILE_PATH); Element audioElement = (Element) audioelementsNodes.item(1); new Song(audioElement); diff --git a/target/jacoco.exec b/target/jacoco.exec index cb85729..bc2bc8f 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 cf268f6..7726a1c 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,4 +1,5 @@ musichub\util\XMLHandlerTest.class +musichub\business\PlayListTest.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 0b9852b..0b05cf3 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\business\PlayListTest.java 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 diff --git a/target/site/jacoco/index.html b/target/site/jacoco/index.html index 330c1da..c69b3a6 100644 --- a/target/site/jacoco/index.html +++ b/target/site/jacoco/index.html @@ -1 +1 @@ -spoteezer

spoteezer

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 332 of 2 80316 %202 of 2103 %18221163574569931319
musichub.business1 72134216 %16184 %15217242549966811215
musichub.main6050 %410 %30302062063311
musichub.util12995 %n/a094400903
\ No newline at end of file +spoteezer

spoteezer

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 162 of 2 80322 %193 of 2108 %17321159174562931219
musichub.business1 55151224 %1521710 %14317238149959811115
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 b3dd1b5..07ff00a 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-847a802727 juin 2021, 12:12:2627 juin 2021, 12:12:27

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.SongTest18d0cf3c4b10a1ce
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 +Sessions

Sessions

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

SessionStart TimeDump Time
DESKTOP-M4INQND-39b23d3827 juin 2021, 12:40:2027 juin 2021, 12:40:20

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.PlayList5513ec76de07c419
musichub.business.PlayListTest70c3a2a856fcdb5e
musichub.business.Song44a87f7f8335b156
musichub.business.SongTest88f03b022c5c7270
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.AssertNull85f4114f65559fbd
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 f56f062..74dcec9 100644 --- a/target/site/jacoco/jacoco.csv +++ b/target/site/jacoco/jacoco.csv @@ -11,7 +11,7 @@ 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,0,105,0,6,0,26,0,12,0,7 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,PlayList,32,170,5,9,9,44,5,9,0,7 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 diff --git a/target/site/jacoco/jacoco.xml b/target/site/jacoco/jacoco.xml index 4c65599..e842251 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/PlayList.html b/target/site/jacoco/musichub.business/PlayList.html index ae17a14..74681b8 100644 --- a/target/site/jacoco/musichub.business/PlayList.html +++ b/target/site/jacoco/musichub.business/PlayList.html @@ -1 +1 @@ -PlayList

PlayList

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total202 of 2020 %14 of 140 %1414535377
PlayList(Element)880 %120 %77232311
createXMLElement(Document, Element)750 %20 %22161611
PlayList(String)140 %n/a115511
PlayList(String, String, ArrayList)130 %n/a115511
addElement(UUID)60 %n/a112211
getElements()30 %n/a111111
getTitle()30 %n/a111111
\ No newline at end of file +PlayList

PlayList

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total32 of 20284 %5 of 1464 %51495307
createXMLElement(Document, Element)205573 %1150 %1241601
PlayList(Element)127686 %4866 %4752301
PlayList(String)14100 %n/a010501
PlayList(String, String, ArrayList)13100 %n/a010501
addElement(UUID)6100 %n/a010201
getElements()3100 %n/a010101
getTitle()3100 %n/a010101
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/PlayList.java.html b/target/site/jacoco/musichub.business/PlayList.java.html index 6a45004..3c1eb72 100644 --- a/target/site/jacoco/musichub.business/PlayList.java.html +++ b/target/site/jacoco/musichub.business/PlayList.java.html @@ -13,89 +13,89 @@ public class PlayList { private final UUID uuid; private ArrayList<UUID> elementUUIDs; - public PlayList(String title, String id, ArrayList<UUID> elementUUIDs) { - this.title = title; - this.uuid = UUID.fromString(id); - this.elementUUIDs = elementUUIDs; - } - - public PlayList(String title) { - this.title = title; - this.uuid = UUID.randomUUID(); - this.elementUUIDs = new ArrayList<>(); - } - - public PlayList(Element xmlElement) { + public PlayList(String title, String id, ArrayList<UUID> elementUUIDs) { + this.title = title; + this.uuid = UUID.fromString(id); + this.elementUUIDs = elementUUIDs; + } + + public PlayList(String title) { + this.title = title; + this.uuid = UUID.randomUUID(); + this.elementUUIDs = new ArrayList<>(); + } + + public PlayList(Element xmlElement) { { - this.title = xmlElement.getElementsByTagName("title").item(0).getTextContent(); + this.title = xmlElement.getElementsByTagName("title").item(0).getTextContent(); - String uuid = null; + 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 playlist 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); //parse list of elements: - Node elementsElement = xmlElement.getElementsByTagName("elements").item(0); - NodeList elementUUIDNodes = elementsElement.getChildNodes(); - if (elementUUIDNodes == null) return; + Node elementsElement = xmlElement.getElementsByTagName("elements").item(0); + NodeList elementUUIDNodes = elementsElement.getChildNodes(); + if (elementUUIDNodes == null) return; - this.elementUUIDs = new ArrayList<>(); + this.elementUUIDs = new ArrayList<>(); - for (int i = 0; i < elementUUIDNodes.getLength(); i++) { - if (elementUUIDNodes.item(i).getNodeType() == Node.ELEMENT_NODE) { - Element elementElement = (Element) elementUUIDNodes.item(i); - if (elementElement.getNodeName().equals("UUID")) { + for (int i = 0; i < elementUUIDNodes.getLength(); i++) { + if (elementUUIDNodes.item(i).getNodeType() == Node.ELEMENT_NODE) { + Element elementElement = (Element) elementUUIDNodes.item(i); + if (elementElement.getNodeName().equals("UUID")) { try { - this.addElement(UUID.fromString(elementElement.getTextContent())); + this.addElement(UUID.fromString(elementElement.getTextContent())); } catch (Exception ex) { ex.printStackTrace(); - } + } } } } } - } + } public void addElement(UUID element) { - elementUUIDs.add(element); - } + elementUUIDs.add(element); + } public ArrayList<UUID> getElements() { - return elementUUIDs; + return elementUUIDs; } public String getTitle() { - return title; + return title; } public void createXMLElement(Document document, Element parentElement) { - Element playlistElement = document.createElement("playlist"); - parentElement.appendChild(playlistElement); + Element playlistElement = document.createElement("playlist"); + parentElement.appendChild(playlistElement); - Element nameElement = document.createElement("title"); - nameElement.appendChild(document.createTextNode(title)); - playlistElement.appendChild(nameElement); + Element nameElement = document.createElement("title"); + nameElement.appendChild(document.createTextNode(title)); + playlistElement.appendChild(nameElement); - Element UUIDElement = document.createElement("UUID"); - UUIDElement.appendChild(document.createTextNode(uuid.toString())); - playlistElement.appendChild(UUIDElement); + Element UUIDElement = document.createElement("UUID"); + UUIDElement.appendChild(document.createTextNode(uuid.toString())); + playlistElement.appendChild(UUIDElement); - Element elementsElement = document.createElement("elements"); - for (UUID currentUUID : this.elementUUIDs) { + Element elementsElement = document.createElement("elements"); + for (UUID currentUUID : this.elementUUIDs) { Element elementUUIDElement = document.createElement("UUID"); elementUUIDElement.appendChild(document.createTextNode(currentUUID.toString())); elementsElement.appendChild(elementUUIDElement); } - playlistElement.appendChild(elementsElement); - } + playlistElement.appendChild(elementsElement); + } } \ 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 58b15a0..3178b04 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
Total1 721 of 2 06316 %161 of 1694 %15217242549966811215
MusicHub8030 %1140 %7979195195222211
Album3300 %140 %161684849911
PlayList2020 %140 %141453537711
AudioBook1640 %100 %171739399911
AudioElement8518168 %9218 %111630724901
Language490 %n/a33663311
Category490 %n/a33663311
SortByAuthor90 %n/a22222211
SortByDate90 %n/a22222211
SortByGenre90 %n/a22222211
NoAlbumFoundException0 %n/a11221111
NoPlayListFoundException0 %n/a11221111
NoElementFoundException0 %n/a11221111
Song105100 %6100 %0120260701
Genre56100 %n/a03060301
\ No newline at end of file +musichub.business

musichub.business

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total1 551 of 2 06324 %152 of 16910 %14317238149959811115
MusicHub8030 %1140 %7979195195222211
Album3300 %140 %161684849911
AudioBook1640 %100 %171739399911
AudioElement8518168 %9218 %111630724901
Language490 %n/a33663311
Category490 %n/a33663311
PlayList3217084 %5964 %5149530701
SortByAuthor90 %n/a22222211
SortByDate90 %n/a22222211
SortByGenre90 %n/a22222211
NoAlbumFoundException0 %n/a11221111
NoPlayListFoundException0 %n/a11221111
NoElementFoundException0 %n/a11221111
Song105100 %6100 %0120260701
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 5de5f23..967ff25 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
Total1 721 of 2 06316 %161 of 1694 %15217242549966811215
MusicHub.java8300 %1140 %8585201201282844
Album.java3300 %140 %161684849911
PlayList.java2020 %140 %141453537711
AudioBook.java1640 %100 %171739399911
AudioElement.java8518168 %9218 %111630724901
Language.java490 %n/a33663311
Category.java490 %n/a33663311
NoAlbumFoundException.java0 %n/a11221111
NoPlayListFoundException.java0 %n/a11221111
NoElementFoundException.java0 %n/a11221111
Song.java105100 %6100 %0120260701
Genre.java56100 %n/a03060301
\ No newline at end of file +musichub.business

musichub.business

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total1 551 of 2 06324 %152 of 16910 %14317238149959811115
MusicHub.java8300 %1140 %8585201201282844
Album.java3300 %140 %161684849911
AudioBook.java1640 %100 %171739399911
AudioElement.java8518168 %9218 %111630724901
Language.java490 %n/a33663311
Category.java490 %n/a33663311
PlayList.java3217084 %5964 %5149530701
NoAlbumFoundException.java0 %n/a11221111
NoPlayListFoundException.java0 %n/a11221111
NoElementFoundException.java0 %n/a11221111
Song.java105100 %6100 %0120260701
Genre.java56100 %n/a03060301
\ No newline at end of file -- cgit v1.2.3