From f9de1516a05f91e5632500a3b0a898938d6c795e Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sun, 27 Jun 2021 12:12:56 +0200 Subject: Song class fully covered. --- log/spoteezer.log | 12 ++++- src/test/java/musichub/business/SongTest.java | 55 +++++++++++++++++---- target/jacoco.exec | Bin 15029 -> 15031 bytes target/site/jacoco/index.html | 2 +- target/site/jacoco/jacoco-sessions.html | 2 +- target/site/jacoco/jacoco.csv | 4 +- target/site/jacoco/jacoco.xml | 2 +- .../jacoco/musichub.business/AudioElement.html | 2 +- .../musichub.business/AudioElement.java.html | 34 ++++++------- target/site/jacoco/musichub.business/Song.html | 2 +- .../site/jacoco/musichub.business/Song.java.html | 26 +++++----- target/site/jacoco/musichub.business/index.html | 2 +- .../jacoco/musichub.business/index.source.html | 2 +- 13 files changed, 96 insertions(+), 49 deletions(-) diff --git a/log/spoteezer.log b/log/spoteezer.log index 3819cab..eab869b 100644 --- a/log/spoteezer.log +++ b/log/spoteezer.log @@ -13,4 +13,14 @@ [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 +[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 diff --git a/src/test/java/musichub/business/SongTest.java b/src/test/java/musichub/business/SongTest.java index b25b6d2..7022786 100644 --- a/src/test/java/musichub/business/SongTest.java +++ b/src/test/java/musichub/business/SongTest.java @@ -2,6 +2,7 @@ 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; @@ -16,31 +17,67 @@ public class SongTest { String content = "Song/Side_To_Side.wav"; String genre = "rock"; + final String DIR = System.getProperty("user.dir"); + final String ELEMENTS_FILE_PATH = DIR + "/files/elements.xml"; + final XMLHandler xmlHandler = new XMLHandler(); + + @Test void testSongClasses() { - Song song_uuid = new Song(title, artist, length, uid, content, genre); - Song song = new Song(title, artist, length, content, genre); + new Song(title, artist, length, uid, content, genre); + 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); + 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"); + 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 + new Song(title, artist, length, content, "classic"); + new Song(title, artist, length, content, "hiphop"); + new Song(title, artist, length, content, "rock"); + new Song(title, artist, length, content, "pop"); + new Song(title, artist, length, content, "rap"); + + Song s = new Song(title, artist, length, content, "cgfdhdfhj"); + assertEquals(s.getGenre(), "jazz"); + } + + @Test + void testToString() { + assertEquals( + new Song(title, artist, length, content, genre) + .toString(), + "Title = Side To Side, Artist = Ariana Grande, Length = 186, Content = Song/Side_To_Side.wav, Genre = rock\n" + ); + assertNotEquals( + new Song(title, artist, length, content, genre) + .toString(), + "Title = God is a woman, Artist = Ariana Grande, Length = 186, Content = Song/Side_To_Side.wav, Genre = rock\n" + ); + } + + @Test + void testCreateXMLElement() { + Song s = new Song(title, artist, length, content, genre); + Document document = xmlHandler.createXMLDocument(); + Element root = document.createElement("elements"); + s.createXMLElement(document, root); + } } diff --git a/target/jacoco.exec b/target/jacoco.exec index a4fab83..cb85729 100644 Binary files a/target/jacoco.exec and b/target/jacoco.exec differ diff --git a/target/site/jacoco/index.html b/target/site/jacoco/index.html index 5c3dabe..330c1da 100644 --- a/target/site/jacoco/index.html +++ b/target/site/jacoco/index.html @@ -1 +1 @@ -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 +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 diff --git a/target/site/jacoco/jacoco-sessions.html b/target/site/jacoco/jacoco-sessions.html index cd7b35e..b3dd1b5 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-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 +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 diff --git a/target/site/jacoco/jacoco.csv b/target/site/jacoco/jacoco.csv index ffeb027..f56f062 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,50,55,4,2,12,14,6,6,2,5 +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,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,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.business,AudioElement,85,181,9,2,30,42,11,5,4,5 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 4532c47..4c65599 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 084f53f..18f7368 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
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 +AudioElement

AudioElement

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total85 of 26668 %9 of 1118 %1116307249
manageAudioElement()680 %70 %66242411
AudioElement(Element)85587 %2250 %2331401
getUUID()30 %n/a111111
getArtist()30 %n/a111111
getTitle()30 %n/a111111
createXMLElement(Document, Element)79100 %n/a0101601
AudioElement(String, String, int, String, String)19100 %n/a010701
AudioElement(String, String, int, String)18100 %n/a010701
toString()10100 %n/a010101
\ 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 28d9e57..7863e1a 100644 --- a/target/site/jacoco/musichub.business/AudioElement.java.html +++ b/target/site/jacoco/musichub.business/AudioElement.java.html @@ -68,31 +68,31 @@ public abstract class AudioElement { } public String toString() { - return "Title = " + this.title + ", Artist = " + this.artist + ", Length = " + this.lengthInSeconds + ", Content = " + this.content; + return "Title = " + this.title + ", Artist = " + this.artist + ", Length = " + this.lengthInSeconds + ", Content = " + this.content; } public void createXMLElement(Document document, Element parentElement) { - Element nameElement = document.createElement("title"); - nameElement.appendChild(document.createTextNode(title)); - parentElement.appendChild(nameElement); + Element nameElement = document.createElement("title"); + nameElement.appendChild(document.createTextNode(title)); + parentElement.appendChild(nameElement); - Element artistElement = document.createElement("artist"); - artistElement.appendChild(document.createTextNode(artist)); - parentElement.appendChild(artistElement); + Element artistElement = document.createElement("artist"); + artistElement.appendChild(document.createTextNode(artist)); + parentElement.appendChild(artistElement); - Element lengthElement = document.createElement("length"); - lengthElement.appendChild(document.createTextNode(Integer.valueOf(lengthInSeconds).toString())); - parentElement.appendChild(lengthElement); + Element lengthElement = document.createElement("length"); + lengthElement.appendChild(document.createTextNode(Integer.valueOf(lengthInSeconds).toString())); + parentElement.appendChild(lengthElement); - Element UUIDElement = document.createElement("UUID"); - UUIDElement.appendChild(document.createTextNode(uuid.toString())); - parentElement.appendChild(UUIDElement); + Element UUIDElement = document.createElement("UUID"); + UUIDElement.appendChild(document.createTextNode(uuid.toString())); + parentElement.appendChild(UUIDElement); - Element contentElement = document.createElement("content"); - contentElement.appendChild(document.createTextNode(content)); - parentElement.appendChild(contentElement); + Element contentElement = document.createElement("content"); + contentElement.appendChild(document.createTextNode(content)); + parentElement.appendChild(contentElement); - } + } public void manageAudioElement() throws UnsupportedAudioFileException, IOException, LineUnavailableException { diff --git a/target/site/jacoco/musichub.business/Song.html b/target/site/jacoco/musichub.business/Song.html index 6231425..4e3aa10 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
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 +Song

Song

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total0 of 105100 %0 of 6100 %01202607
setGenre(String)33100 %6100 %060801
createXMLElement(Document, Element)29100 %n/a010701
Song(Element)12100 %n/a010301
Song(String, String, int, String, String, String)11100 %n/a010301
Song(String, String, int, String, String)10100 %n/a010301
toString()6100 %n/a010101
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 86ea1bf..f78cf39 100644 --- a/target/site/jacoco/musichub.business/Song.java.html +++ b/target/site/jacoco/musichub.business/Song.java.html @@ -27,32 +27,32 @@ public class Song extends AudioElement { } public void setGenre(String genre) { - switch (genre.toLowerCase()) { - default -> this.genre = Genre.JAZZ; - case "classic" -> this.genre = Genre.CLASSIC; - case "hiphop" -> this.genre = Genre.HIPHOP; + 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 "rap" -> this.genre = Genre.RAP; + case "rap" -> this.genre = Genre.RAP; } } public String toString() { - return super.toString() + ", Genre = " + getGenre() + "\n"; + return super.toString() + ", Genre = " + getGenre() + "\n"; } public void createXMLElement(Document document, Element parentElement) { // song element - Element song = document.createElement("song"); + Element song = document.createElement("song"); - super.createXMLElement(document, song); + super.createXMLElement(document, song); - Element genreElement = document.createElement("genre"); - genreElement.appendChild(document.createTextNode(genre.getGenre())); - song.appendChild(genreElement); + Element genreElement = document.createElement("genre"); + genreElement.appendChild(document.createTextNode(genre.getGenre())); + song.appendChild(genreElement); - parentElement.appendChild(song); - } + parentElement.appendChild(song); + } } diff --git a/target/site/jacoco/musichub.business/index.html b/target/site/jacoco/musichub.business/index.html index 9e86b79..58b15a0 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 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 +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 diff --git a/target/site/jacoco/musichub.business/index.source.html b/target/site/jacoco/musichub.business/index.source.html index 7ceb0fd..5de5f23 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 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 +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 -- cgit v1.2.3