From e9ee951e570c441151385d1ccd8c4230abf704ca Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sat, 26 Jun 2021 14:32:12 +0200 Subject: Updated javadoc, added jacoco and the necessary JUnit for this feature. --- target/site/jacoco/musichub.business/Album.html | 1 + .../site/jacoco/musichub.business/Album.java.html | 146 +++++++++ .../site/jacoco/musichub.business/AudioBook.html | 1 + .../jacoco/musichub.business/AudioBook.java.html | 79 +++++ .../jacoco/musichub.business/AudioElement.html | 1 + .../musichub.business/AudioElement.java.html | 133 ++++++++ target/site/jacoco/musichub.business/Category.html | 1 + .../jacoco/musichub.business/Category.java.html | 15 + target/site/jacoco/musichub.business/Genre.html | 1 + .../site/jacoco/musichub.business/Genre.java.html | 15 + target/site/jacoco/musichub.business/Language.html | 1 + .../jacoco/musichub.business/Language.java.html | 15 + target/site/jacoco/musichub.business/MusicHub.html | 1 + .../jacoco/musichub.business/MusicHub.java.html | 343 +++++++++++++++++++++ .../musichub.business/NoAlbumFoundException.html | 1 + .../NoAlbumFoundException.java.html | 9 + .../musichub.business/NoElementFoundException.html | 1 + .../NoElementFoundException.java.html | 9 + .../NoPlayListFoundException.html | 1 + .../NoPlayListFoundException.java.html | 9 + .../jacoco/musichub.business/PathValidation.html | 1 + .../musichub.business/PathValidation.java.html | 39 +++ target/site/jacoco/musichub.business/PlayList.html | 1 + .../jacoco/musichub.business/PlayList.java.html | 101 ++++++ target/site/jacoco/musichub.business/Song.html | 1 + .../site/jacoco/musichub.business/Song.java.html | 59 ++++ .../jacoco/musichub.business/SortByAuthor.html | 1 + .../site/jacoco/musichub.business/SortByDate.html | 1 + .../site/jacoco/musichub.business/SortByGenre.html | 1 + target/site/jacoco/musichub.business/index.html | 1 + .../jacoco/musichub.business/index.source.html | 1 + 31 files changed, 990 insertions(+) create mode 100644 target/site/jacoco/musichub.business/Album.html create mode 100644 target/site/jacoco/musichub.business/Album.java.html create mode 100644 target/site/jacoco/musichub.business/AudioBook.html create mode 100644 target/site/jacoco/musichub.business/AudioBook.java.html create mode 100644 target/site/jacoco/musichub.business/AudioElement.html create mode 100644 target/site/jacoco/musichub.business/AudioElement.java.html create mode 100644 target/site/jacoco/musichub.business/Category.html create mode 100644 target/site/jacoco/musichub.business/Category.java.html create mode 100644 target/site/jacoco/musichub.business/Genre.html create mode 100644 target/site/jacoco/musichub.business/Genre.java.html create mode 100644 target/site/jacoco/musichub.business/Language.html create mode 100644 target/site/jacoco/musichub.business/Language.java.html create mode 100644 target/site/jacoco/musichub.business/MusicHub.html create mode 100644 target/site/jacoco/musichub.business/MusicHub.java.html create mode 100644 target/site/jacoco/musichub.business/NoAlbumFoundException.html create mode 100644 target/site/jacoco/musichub.business/NoAlbumFoundException.java.html create mode 100644 target/site/jacoco/musichub.business/NoElementFoundException.html create mode 100644 target/site/jacoco/musichub.business/NoElementFoundException.java.html create mode 100644 target/site/jacoco/musichub.business/NoPlayListFoundException.html create mode 100644 target/site/jacoco/musichub.business/NoPlayListFoundException.java.html create mode 100644 target/site/jacoco/musichub.business/PathValidation.html create mode 100644 target/site/jacoco/musichub.business/PathValidation.java.html create mode 100644 target/site/jacoco/musichub.business/PlayList.html create mode 100644 target/site/jacoco/musichub.business/PlayList.java.html create mode 100644 target/site/jacoco/musichub.business/Song.html create mode 100644 target/site/jacoco/musichub.business/Song.java.html create mode 100644 target/site/jacoco/musichub.business/SortByAuthor.html create mode 100644 target/site/jacoco/musichub.business/SortByDate.html create mode 100644 target/site/jacoco/musichub.business/SortByGenre.html create mode 100644 target/site/jacoco/musichub.business/index.html create mode 100644 target/site/jacoco/musichub.business/index.source.html (limited to 'target/site/jacoco/musichub.business') diff --git a/target/site/jacoco/musichub.business/Album.html b/target/site/jacoco/musichub.business/Album.html new file mode 100644 index 0000000..24287ce --- /dev/null +++ b/target/site/jacoco/musichub.business/Album.html @@ -0,0 +1 @@ +Album

Album

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total330 of 3300 %14 of 140 %1616848499
createXMLElement(Document, Element)1290 %20 %22262611
Album(Element)1120 %120 %77262611
Album(String, String, int, String)340 %n/a11121211
Album(String, String, int, String, String, ArrayList)330 %n/a11121211
getSongsRandomly()70 %n/a113311
addSong(UUID)60 %n/a112211
getSongs()30 %n/a111111
getTitle()30 %n/a111111
getDate()30 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Album.java.html b/target/site/jacoco/musichub.business/Album.java.html new file mode 100644 index 0000000..107bbe9 --- /dev/null +++ b/target/site/jacoco/musichub.business/Album.java.html @@ -0,0 +1,146 @@ +Album.java

Album.java

package musichub.business;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.*;
+
+
+public class Album {
+    private final String title;
+    private final int lengthInSeconds;
+    private final UUID uuid;
+    private String artist;
+    private Date date;
+    private ArrayList<UUID> songsUIDs;
+
+    public Album(String title, String artist, int lengthInSeconds, String id, String date, ArrayList<UUID> songsUIDs) {
+        this.title = title;
+        this.artist = artist;
+        this.lengthInSeconds = lengthInSeconds;
+        this.uuid = UUID.fromString(id);
+        try {
+            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+            this.date = sdf.parse(date);
+        } catch (ParseException ex) {
+            ex.printStackTrace();
+        }
+        this.songsUIDs = songsUIDs;
+    }
+
+    public Album(String title, String artist, int lengthInSeconds, String date) {
+        this.title = title;
+        this.artist = artist;
+        this.lengthInSeconds = lengthInSeconds;
+        this.uuid = UUID.randomUUID();
+        try {
+            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+            this.date = sdf.parse(date);
+        } catch (ParseException ex) {
+            ex.printStackTrace();
+        }
+        this.songsUIDs = new ArrayList<>();
+    }
+
+    public Album(Element xmlElement) throws Exception {
+        {
+            this.title = xmlElement.getElementsByTagName("title").item(0).getTextContent();
+            this.lengthInSeconds = Integer.parseInt(xmlElement.getElementsByTagName("lengthInSeconds").item(0).getTextContent());
+            String uuid = null;
+            try {
+                uuid = xmlElement.getElementsByTagName("UUID").item(0).getTextContent();
+            } catch (Exception ex) {
+                System.out.println("Empty album UUID, will create a new one");
+            }
+            if ((uuid == null) || (uuid.isEmpty()))
+                this.uuid = UUID.randomUUID();
+            else this.uuid = UUID.fromString(uuid);
+
+            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+            this.date = sdf.parse(xmlElement.getElementsByTagName("date").item(0).getTextContent());
+            //parse list of songs:
+            Node songsElement = xmlElement.getElementsByTagName("songs").item(0);
+            NodeList songUUIDNodes = songsElement.getChildNodes();
+            if (songUUIDNodes == null) return;
+
+            this.songsUIDs = new ArrayList<>();
+
+            for (int i = 0; i < songUUIDNodes.getLength(); i++) {
+                if (songUUIDNodes.item(i).getNodeType() == Node.ELEMENT_NODE) {
+                    Element songElement = (Element) songUUIDNodes.item(i);
+                    if (songElement.getNodeName().equals("UUID")) {
+                        try {
+                            this.addSong(UUID.fromString(songElement.getTextContent()));
+                        } catch (Exception ex) {
+                            ex.printStackTrace();
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+
+    public void addSong(UUID song) {
+        songsUIDs.add(song);
+    }
+
+
+    public List<UUID> getSongs() {
+        return songsUIDs;
+    }
+
+    public ArrayList<UUID> getSongsRandomly() {
+        ArrayList<UUID> shuffledSongs = songsUIDs;
+        Collections.shuffle(shuffledSongs);
+        return shuffledSongs;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public Date getDate() {
+        return date;
+    }
+
+    public void createXMLElement(Document document, Element parentElement) {
+        Element albumElement = document.createElement("album");
+        parentElement.appendChild(albumElement);
+
+        Element nameElement = document.createElement("title");
+        nameElement.appendChild(document.createTextNode(title));
+        albumElement.appendChild(nameElement);
+
+        Element artistElement = document.createElement("artist");
+        artistElement.appendChild(document.createTextNode(artist));
+        albumElement.appendChild(artistElement);
+
+        Element lengthElement = document.createElement("lengthInSeconds");
+        lengthElement.appendChild(document.createTextNode(Integer.valueOf(lengthInSeconds).toString()));
+        albumElement.appendChild(lengthElement);
+
+        Element UUIDElement = document.createElement("UUID");
+        UUIDElement.appendChild(document.createTextNode(uuid.toString()));
+        albumElement.appendChild(UUIDElement);
+
+        Element dateElement = document.createElement("date");
+        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
+        dateElement.appendChild(document.createTextNode(sdf.format(date)));
+        albumElement.appendChild(dateElement);
+
+        Element songsElement = document.createElement("songs");
+        for (UUID currentUUID : this.songsUIDs) {
+            Element songUUIDElement = document.createElement("UUID");
+            songUUIDElement.appendChild(document.createTextNode(currentUUID.toString()));
+            songsElement.appendChild(songUUIDElement);
+        }
+        albumElement.appendChild(songsElement);
+
+    }
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/AudioBook.html b/target/site/jacoco/musichub.business/AudioBook.html new file mode 100644 index 0000000..aec1e56 --- /dev/null +++ b/target/site/jacoco/musichub.business/AudioBook.html @@ -0,0 +1 @@ +AudioBook

AudioBook

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total164 of 1640 %10 of 100 %1717393999
createXMLElement(Document, Element)450 %n/a11101011
setLanguage(String)290 %50 %557711
setCategory(String)290 %50 %557711
AudioBook(Element)200 %n/a114411
AudioBook(String, String, int, String, String, String, String)140 %n/a114411
AudioBook(String, String, int, String, String, String)130 %n/a114411
toString()80 %n/a111111
getLanguage()30 %n/a111111
getCategory()30 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/AudioBook.java.html b/target/site/jacoco/musichub.business/AudioBook.java.html new file mode 100644 index 0000000..33a7924 --- /dev/null +++ b/target/site/jacoco/musichub.business/AudioBook.java.html @@ -0,0 +1,79 @@ +AudioBook.java

AudioBook.java

package musichub.business;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+public class AudioBook extends AudioElement {
+    private Language language;
+    private Category category;
+
+    public AudioBook(String title, String artist, int lengthInSeconds, String uid, String content, String language, String category) {
+        super(title, artist, lengthInSeconds, uid, content);
+        this.setLanguage(language);
+        this.setCategory(category);
+    }
+
+    public AudioBook(String title, String artist, int lengthInSeconds, String content, String language, String category) {
+        super(title, artist, lengthInSeconds, content);
+        this.setLanguage(language);
+        this.setCategory(category);
+    }
+
+    public AudioBook(Element xmlElement) {
+        super(xmlElement);
+        this.setLanguage(xmlElement.getElementsByTagName("language").item(0).getTextContent());
+        this.setCategory(xmlElement.getElementsByTagName("category").item(0).getTextContent());
+    }
+
+    public Language getLanguage() {
+        return this.language;
+    }
+
+    public void setLanguage(String language) {
+        switch (language.toLowerCase()) {
+            default -> this.language = Language.ENGLISH;
+            case "french" -> this.language = Language.FRENCH;
+            case "german" -> this.language = Language.GERMAN;
+            case "spanish" -> this.language = Language.SPANISH;
+            case "italian" -> this.language = Language.ITALIAN;
+        }
+    }
+
+    public Category getCategory() {
+        return this.category;
+    }
+
+    public void setCategory(String category) {
+        switch (category.toLowerCase()) {
+            default -> this.category = Category.YOUTH;
+            case "novel" -> this.category = Category.NOVEL;
+            case "theater" -> this.category = Category.THEATER;
+            case "documentary" -> this.category = Category.DOCUMENTARY;
+            case "speech" -> this.category = Category.SPEECH;
+        }
+    }
+
+
+    public String toString() {
+        return super.toString() + ", Language = " + getLanguage() + ", Category = " + getCategory() + "\n";
+    }
+
+
+    public void createXMLElement(Document document, Element parentElement) {
+        // audiobook element
+        Element audioBook = document.createElement("audiobook");
+
+        super.createXMLElement(document, audioBook);
+
+        Element languageElement = document.createElement("language");
+        languageElement.appendChild(document.createTextNode(language.getLanguage()));
+        audioBook.appendChild(languageElement);
+
+        Element categoryElement = document.createElement("category");
+        categoryElement.appendChild(document.createTextNode(category.getCategory()));
+        audioBook.appendChild(categoryElement);
+
+        parentElement.appendChild(audioBook);
+    }
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/AudioElement.html b/target/site/jacoco/musichub.business/AudioElement.html new file mode 100644 index 0000000..7a6e499 --- /dev/null +++ b/target/site/jacoco/musichub.business/AudioElement.html @@ -0,0 +1 @@ +AudioElement

AudioElement

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total266 of 2660 %11 of 110 %1616727299
createXMLElement(Document, Element)790 %n/a11161611
manageAudioElement()680 %70 %66242411
AudioElement(Element)630 %40 %33141411
AudioElement(String, String, int, String, String)190 %n/a117711
AudioElement(String, String, int, String)180 %n/a117711
toString()100 %n/a111111
getUUID()30 %n/a111111
getArtist()30 %n/a111111
getTitle()30 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/AudioElement.java.html b/target/site/jacoco/musichub.business/AudioElement.java.html new file mode 100644 index 0000000..4401836 --- /dev/null +++ b/target/site/jacoco/musichub.business/AudioElement.java.html @@ -0,0 +1,133 @@ +AudioElement.java

AudioElement.java

package musichub.business;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Scanner;
+import java.util.UUID;
+
+import javax.sound.sampled.AudioInputStream;
+import javax.sound.sampled.AudioSystem;
+import javax.sound.sampled.Clip;
+import javax.sound.sampled.LineUnavailableException;
+import javax.sound.sampled.UnsupportedAudioFileException;
+
+public abstract class AudioElement {
+    protected String title;
+    protected String artist;
+    protected int lengthInSeconds;
+    protected UUID uuid;
+    protected String content;
+
+    public AudioElement(String title, String artist, int lengthInSeconds, String id, String content) {
+        this.title = title;
+        this.artist = artist;
+        this.lengthInSeconds = lengthInSeconds;
+        this.uuid = UUID.fromString(id);
+        this.content = content;
+    }
+
+    public AudioElement(String title, String artist, int lengthInSeconds, String content) {
+        this.title = title;
+        this.artist = artist;
+        this.lengthInSeconds = lengthInSeconds;
+        this.content = content;
+        this.uuid = UUID.randomUUID();
+    }
+
+    public AudioElement(Element xmlElement) {
+        {
+            title = xmlElement.getElementsByTagName("title").item(0).getTextContent();
+            artist = xmlElement.getElementsByTagName("artist").item(0).getTextContent();
+            lengthInSeconds = Integer.parseInt(xmlElement.getElementsByTagName("length").item(0).getTextContent());
+            content = xmlElement.getElementsByTagName("content").item(0).getTextContent();
+            String uuid = null;
+            try {
+                uuid = xmlElement.getElementsByTagName("UUID").item(0).getTextContent();
+            } catch (Exception ex) {
+                System.out.println("Empty element UUID, will create a new one");
+            }
+            if ((uuid == null) || (uuid.isEmpty()))
+                this.uuid = UUID.randomUUID();
+            else this.uuid = UUID.fromString(uuid);
+        }
+    }
+
+    public UUID getUUID() {
+        return this.uuid;
+    }
+
+    public String getArtist() {
+        return this.artist;
+    }
+
+    public String getTitle() {
+        return this.title;
+    }
+
+    public String toString() {
+        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 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 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);
+
+    }
+    
+    public void manageAudioElement() throws UnsupportedAudioFileException, IOException, LineUnavailableException {
+    	
+    	Scanner scanner = new Scanner(System.in); 
+    	
+    	File file = new File(this.content);
+    	AudioInputStream audioStream = AudioSystem.getAudioInputStream(file);
+    	Clip clip = AudioSystem.getClip();
+    	clip.open(audioStream);
+    	
+    	String action = "";
+    			
+    	while(!action.equals("Q")) {
+    		System.out.println("P = Play \b S = Stop \b R = Reset \b Q = Quit");
+    		System.out.println("Enter your choice");
+    		action = scanner.next();
+        	action = action.toUpperCase();
+        	
+        	switch(action) {
+        		case "S" : clip.stop();
+        		break;
+        		case "P" : clip.start();
+        		break;
+        		case "R" : clip.setMicrosecondPosition(0);
+        		break;
+        		case "Q" : clip.stop();
+        		break;
+        		default : System.out.println("try again");
+        	}
+        	System.out.println("You stoped the Audio element");
+    	}
+    	
+    	clip.close();
+    
+    }
+
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Category.html b/target/site/jacoco/musichub.business/Category.html new file mode 100644 index 0000000..d7e4df0 --- /dev/null +++ b/target/site/jacoco/musichub.business/Category.html @@ -0,0 +1 @@ +Category

Category

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total49 of 490 %0 of 0n/a336633
static {...}380 %n/a112211
Category(String, int, String)80 %n/a113311
getCategory()30 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Category.java.html b/target/site/jacoco/musichub.business/Category.java.html new file mode 100644 index 0000000..cdef51f --- /dev/null +++ b/target/site/jacoco/musichub.business/Category.java.html @@ -0,0 +1,15 @@ +Category.java

Category.java

package musichub.business;
+
+public enum Category {
+    YOUTH("youth"), NOVEL("novel"), THEATER("theater"), DOCUMENTARY("documentary"), SPEECH("speech");
+    private final String category;
+
+    Category(String category) {
+        this.category = category;
+    }
+
+    public String getCategory() {
+        return category;
+    }
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Genre.html b/target/site/jacoco/musichub.business/Genre.html new file mode 100644 index 0000000..88e0ecd --- /dev/null +++ b/target/site/jacoco/musichub.business/Genre.html @@ -0,0 +1 @@ +Genre

Genre

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total56 of 560 %0 of 0n/a336633
static {...}450 %n/a112211
Genre(String, int, String)80 %n/a113311
getGenre()30 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Genre.java.html b/target/site/jacoco/musichub.business/Genre.java.html new file mode 100644 index 0000000..021bb4b --- /dev/null +++ b/target/site/jacoco/musichub.business/Genre.java.html @@ -0,0 +1,15 @@ +Genre.java

Genre.java

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

Language

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total49 of 490 %0 of 0n/a336633
static {...}380 %n/a112211
Language(String, int, String)80 %n/a113311
getLanguage()30 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Language.java.html b/target/site/jacoco/musichub.business/Language.java.html new file mode 100644 index 0000000..f974811 --- /dev/null +++ b/target/site/jacoco/musichub.business/Language.java.html @@ -0,0 +1,15 @@ +Language.java

Language.java

package musichub.business;
+
+public enum Language {
+    FRENCH("french"), ENGLISH("english"), ITALIAN("italian"), SPANISH("spanish"), GERMAN("german");
+    private final String language;
+
+    Language(String language) {
+        this.language = language;
+    }
+
+    public String getLanguage() {
+        return language;
+    }
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/MusicHub.html b/target/site/jacoco/musichub.business/MusicHub.html new file mode 100644 index 0000000..6bedc98 --- /dev/null +++ b/target/site/jacoco/musichub.business/MusicHub.html @@ -0,0 +1 @@ +MusicHub

MusicHub

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total803 of 8030 %114 of 1140 %79791951952222
addElementToAlbum(String, String)820 %120 %77202011
addElementToPlayList(String, String)820 %120 %77202011
getAlbumSongsSortedByGenre(String)790 %140 %88161611
getAlbumSongs(String)730 %140 %88151511
loadElements()640 %100 %66181811
getAudiobooksTitlesSortedByAuthor()530 %60 %449911
saveElements()470 %80 %55121211
loadAlbums()440 %80 %55111111
loadPlaylists()440 %80 %55111111
deletePlayList(String)400 %80 %55111111
saveAlbums()360 %40 %33101011
savePlayLists()360 %40 %33101011
getAlbumsTitlesSortedByDate()320 %20 %225511
MusicHub()290 %n/a119911
getAudioElement(List, String)190 %40 %335511
static {...}130 %n/a114411
addElement(AudioElement)60 %n/a112211
addAlbum(Album)60 %n/a112211
addPlaylist(PlayList)60 %n/a112211
albums()40 %n/a111111
playlists()40 %n/a111111
elements()40 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/MusicHub.java.html b/target/site/jacoco/musichub.business/MusicHub.java.html new file mode 100644 index 0000000..b9dfd09 --- /dev/null +++ b/target/site/jacoco/musichub.business/MusicHub.java.html @@ -0,0 +1,343 @@ +MusicHub.java

MusicHub.java

package musichub.business;
+
+import musichub.util.XMLHandler;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+import java.io.IOException;
+import java.util.*;
+
+import javax.sound.sampled.LineUnavailableException;
+import javax.sound.sampled.UnsupportedAudioFileException;
+
+class SortByDate implements Comparator<Album> {
+    public int compare(Album a1, Album a2) {
+        return a1.getDate().compareTo(a2.getDate());
+    }
+}
+
+class SortByGenre implements Comparator<Song> {
+    public int compare(Song s1, Song s2) {
+        return s1.getGenre().compareTo(s2.getGenre());
+    }
+}
+
+class SortByAuthor implements Comparator<AudioElement> {
+    public int compare(AudioElement e1, AudioElement e2) {
+        return e1.getArtist().compareTo(e2.getArtist());
+    }
+}
+
+public class MusicHub {
+    public static final String DIR = System.getProperty("user.dir");
+    public static final String ALBUMS_FILE_PATH = DIR + "/files/albums.xml";
+    public static final String PLAYLISTS_FILE_PATH = DIR + "/files/playlists.xml";
+    public static final String ELEMENTS_FILE_PATH = DIR + "/files/elements.xml";
+    private final List<Album> albums;
+    private final List<PlayList> playlists;
+    private final List<AudioElement> elements;
+    private final XMLHandler xmlHandler = new XMLHandler();
+
+    public MusicHub() {
+        albums = new LinkedList<>();
+        playlists = new LinkedList<>();
+        elements = new LinkedList<>();
+        this.loadElements();
+        this.loadAlbums();
+        this.loadPlaylists();
+    }
+
+    public void addElement(AudioElement element) {
+        elements.add(element);
+    }
+
+    public void addAlbum(Album album) {
+        albums.add(album);
+    }
+
+    public void addPlaylist(PlayList playlist) {
+        playlists.add(playlist);
+    }
+
+    public void deletePlayList(String playListTitle) throws NoPlayListFoundException {
+
+        PlayList thePlayList = null;
+        boolean result = false;
+        for (PlayList pl : playlists) {
+            if (pl.getTitle().equalsIgnoreCase(playListTitle)) {
+                thePlayList = pl;
+                break;
+            }
+        }
+
+        if (thePlayList != null)
+            result = playlists.remove(thePlayList);
+        if (!result) throw new NoPlayListFoundException("Playlist " + playListTitle + " not found!");
+    }
+
+    public Iterator<Album> albums() {
+        return albums.listIterator();
+    }
+
+    public Iterator<PlayList> playlists() {
+        return playlists.listIterator();
+    }
+
+    public Iterator<AudioElement> elements() {
+        return elements.listIterator();
+    }
+
+    public String getAlbumsTitlesSortedByDate() {
+        StringBuilder titleList = new StringBuilder();
+        albums.sort(new SortByDate());
+        for (Album al : albums)
+            titleList.append(al.getTitle()).append("\n");
+        return titleList.toString();
+    }
+
+    public String getAudiobooksTitlesSortedByAuthor() {
+        StringBuilder titleList = new StringBuilder();
+        List<AudioElement> audioBookList = new ArrayList<>();
+        for (AudioElement ae : elements)
+            if (ae instanceof AudioBook)
+                audioBookList.add(ae);
+        audioBookList.sort(new SortByAuthor());
+        for (AudioElement ab : audioBookList)
+            titleList.append(ab.getArtist()).append("\n");
+        return titleList.toString();
+    }
+
+    public List<AudioElement> getAlbumSongs(String albumTitle) throws NoAlbumFoundException {
+        Album theAlbum = null;
+        ArrayList<AudioElement> songsInAlbum = new ArrayList<>();
+        for (Album al : albums) {
+            if (al.getTitle().equalsIgnoreCase(albumTitle)) {
+                theAlbum = al;
+                break;
+            }
+        }
+        if (theAlbum == null) throw new NoAlbumFoundException("No album with this title in the MusicHub!");
+
+        List<UUID> songIDs = theAlbum.getSongs();
+        for (UUID id : songIDs)
+            for (AudioElement el : elements) {
+                if (el instanceof Song) {
+                    if (el.getUUID().equals(id)) songsInAlbum.add(el);
+                }
+            }
+        return songsInAlbum;
+
+    }
+
+    public List<Song> getAlbumSongsSortedByGenre(String albumTitle) throws NoAlbumFoundException {
+        Album theAlbum = null;
+        ArrayList<Song> songsInAlbum = new ArrayList<>();
+        for (Album al : albums) {
+            if (al.getTitle().equalsIgnoreCase(albumTitle)) {
+                theAlbum = al;
+                break;
+            }
+        }
+        if (theAlbum == null) throw new NoAlbumFoundException("No album with this title in the MusicHub!");
+
+        List<UUID> songIDs = theAlbum.getSongs();
+        for (UUID id : songIDs)
+            for (AudioElement el : elements) {
+                if (el instanceof Song) {
+                    if (el.getUUID().equals(id)) songsInAlbum.add((Song) el);
+                }
+            }
+        songsInAlbum.sort(new SortByGenre());
+        return songsInAlbum;
+
+    }
+
+    public void addElementToAlbum(String elementTitle, String albumTitle) throws NoAlbumFoundException, NoElementFoundException {
+        Album theAlbum = null;
+        int i;
+        boolean found = false;
+        for (i = 0; i < albums.size(); i++) {
+            if (albums.get(i).getTitle().equalsIgnoreCase(albumTitle)) {
+                theAlbum = albums.get(i);
+                found = true;
+                break;
+            }
+        }
+
+        if (found) {
+            AudioElement theElement = null;
+            for (AudioElement ae : elements) {
+                if (ae.getTitle().equalsIgnoreCase(elementTitle)) {
+                    theElement = ae;
+                    break;
+                }
+            }
+            if (theElement != null) {
+                theAlbum.addSong(theElement.getUUID());
+                //replace the album in the list
+                albums.set(i, theAlbum);
+            } else throw new NoElementFoundException("Element " + elementTitle + " not found!");
+        } else throw new NoAlbumFoundException("Album " + albumTitle + " not found!");
+
+    }
+
+    public void addElementToPlayList(String elementTitle, String playListTitle) throws NoPlayListFoundException, NoElementFoundException {
+        PlayList thePlaylist = null;
+        int i;
+        boolean found = false;
+
+        for (i = 0; i < playlists.size(); i++) {
+            if (playlists.get(i).getTitle().equalsIgnoreCase(playListTitle)) {
+                thePlaylist = playlists.get(i);
+                found = true;
+                break;
+            }
+        }
+
+        if (found) {
+            AudioElement theElement = null;
+            for (AudioElement ae : elements) {
+                if (ae.getTitle().equalsIgnoreCase(elementTitle)) {
+                    theElement = ae;
+                    break;
+                }
+            }
+            if (theElement != null) {
+                thePlaylist.addElement(theElement.getUUID());
+                //replace the album in the list
+                playlists.set(i, thePlaylist);
+            } else throw new NoElementFoundException("Element " + elementTitle + " not found!");
+
+        } else throw new NoPlayListFoundException("Playlist " + playListTitle + " not found!");
+
+    }
+
+    private void loadAlbums() {
+        NodeList albumNodes = xmlHandler.parseXMLFile(ALBUMS_FILE_PATH);
+        if (albumNodes == null) return;
+
+        for (int i = 0; i < albumNodes.getLength(); i++) {
+            if (albumNodes.item(i).getNodeType() == Node.ELEMENT_NODE) {
+                Element albumElement = (Element) albumNodes.item(i);
+                if (albumElement.getNodeName().equals("album")) {
+                    try {
+                        this.addAlbum(new Album(albumElement));
+                    } catch (Exception ex) {
+                        System.out.println("Something is wrong with the XML album element");
+                    }
+                }
+            }
+        }
+    }
+
+    private void loadPlaylists() {
+        NodeList playlistNodes = xmlHandler.parseXMLFile(PLAYLISTS_FILE_PATH);
+        if (playlistNodes == null) return;
+
+        for (int i = 0; i < playlistNodes.getLength(); i++) {
+            if (playlistNodes.item(i).getNodeType() == Node.ELEMENT_NODE) {
+                Element playlistElement = (Element) playlistNodes.item(i);
+                if (playlistElement.getNodeName().equals("playlist")) {
+                    try {
+                        this.addPlaylist(new PlayList(playlistElement));
+                    } catch (Exception ex) {
+                        System.out.println("Something is wrong with the XML playlist element");
+                    }
+                }
+            }
+        }
+    }
+
+    private void loadElements() {
+        NodeList audioelementsNodes = xmlHandler.parseXMLFile(ELEMENTS_FILE_PATH);
+        if (audioelementsNodes == null) return;
+
+        for (int i = 0; i < audioelementsNodes.getLength(); i++) {
+            if (audioelementsNodes.item(i).getNodeType() == Node.ELEMENT_NODE) {
+                Element audioElement = (Element) audioelementsNodes.item(i);
+                if (audioElement.getNodeName().equals("song")) {
+                    try {
+                        AudioElement newSong = new Song(audioElement);
+                        this.addElement(newSong);
+                    } catch (Exception ex) {
+                        System.out.println("Something is wrong with the XML song element");
+                    }
+                }
+                if (audioElement.getNodeName().equals("audiobook")) {
+                    try {
+                        AudioElement newAudioBook = new AudioBook(audioElement);
+                        this.addElement(newAudioBook);
+                    } catch (Exception ex) {
+                        System.out.println("Something is wrong with the XML audiobook element");
+                    }
+                }
+            }
+        }
+    }
+
+
+    public void saveAlbums() {
+        Document document = xmlHandler.createXMLDocument();
+        if (document == null) return;
+
+        // root element
+        Element root = document.createElement("albums");
+        document.appendChild(root);
+
+        //save all albums
+        for (Iterator<Album> albumsIter = this.albums(); albumsIter.hasNext(); ) {
+            Album currentAlbum = albumsIter.next();
+            currentAlbum.createXMLElement(document, root);
+        }
+        xmlHandler.createXMLFile(document, ALBUMS_FILE_PATH);
+    }
+
+    public void savePlayLists() {
+        Document document = xmlHandler.createXMLDocument();
+        if (document == null) return;
+
+        // root element
+        Element root = document.createElement("playlists");
+        document.appendChild(root);
+
+        //save all playlists
+        for (Iterator<PlayList> playlistsIter = this.playlists(); playlistsIter.hasNext(); ) {
+            PlayList currentPlayList = playlistsIter.next();
+            currentPlayList.createXMLElement(document, root);
+        }
+        xmlHandler.createXMLFile(document, PLAYLISTS_FILE_PATH);
+    }
+
+    public void saveElements() {
+        Document document = xmlHandler.createXMLDocument();
+        if (document == null) return;
+
+        // root element
+        Element root = document.createElement("elements");
+        document.appendChild(root);
+
+        //save all AudioElements
+        for (AudioElement currentElement : elements) {
+
+            if (currentElement instanceof Song) {
+                currentElement.createXMLElement(document, root);
+            }
+            if (currentElement instanceof AudioBook) {
+                currentElement.createXMLElement(document, root);
+            }
+        }
+        xmlHandler.createXMLFile(document, ELEMENTS_FILE_PATH);
+    }
+    
+    public void getAudioElement(List<AudioElement> audios, String elementTitle) throws NoAlbumFoundException, UnsupportedAudioFileException, IOException, LineUnavailableException {
+        for (AudioElement el : audios) {
+            if (el.getTitle().equalsIgnoreCase(elementTitle)) {
+                el.manageAudioElement();
+            }
+        }
+
+    }
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/NoAlbumFoundException.html b/target/site/jacoco/musichub.business/NoAlbumFoundException.html new file mode 100644 index 0000000..51bf5be --- /dev/null +++ b/target/site/jacoco/musichub.business/NoAlbumFoundException.html @@ -0,0 +1 @@ +NoAlbumFoundException

NoAlbumFoundException

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total4 of 40 %0 of 0n/a112211
NoAlbumFoundException(String)40 %n/a112211
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/NoAlbumFoundException.java.html b/target/site/jacoco/musichub.business/NoAlbumFoundException.java.html new file mode 100644 index 0000000..d78347b --- /dev/null +++ b/target/site/jacoco/musichub.business/NoAlbumFoundException.java.html @@ -0,0 +1,9 @@ +NoAlbumFoundException.java

NoAlbumFoundException.java

package musichub.business;
+
+public class NoAlbumFoundException extends Exception {
+
+    public NoAlbumFoundException(String msg) {
+        super(msg);
+    }
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/NoElementFoundException.html b/target/site/jacoco/musichub.business/NoElementFoundException.html new file mode 100644 index 0000000..01fecbd --- /dev/null +++ b/target/site/jacoco/musichub.business/NoElementFoundException.html @@ -0,0 +1 @@ +NoElementFoundException

NoElementFoundException

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total4 of 40 %0 of 0n/a112211
NoElementFoundException(String)40 %n/a112211
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/NoElementFoundException.java.html b/target/site/jacoco/musichub.business/NoElementFoundException.java.html new file mode 100644 index 0000000..4d5f6bb --- /dev/null +++ b/target/site/jacoco/musichub.business/NoElementFoundException.java.html @@ -0,0 +1,9 @@ +NoElementFoundException.java

NoElementFoundException.java

package musichub.business;
+
+public class NoElementFoundException extends Exception {
+
+    public NoElementFoundException(String msg) {
+        super(msg);
+    }
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/NoPlayListFoundException.html b/target/site/jacoco/musichub.business/NoPlayListFoundException.html new file mode 100644 index 0000000..d1803ad --- /dev/null +++ b/target/site/jacoco/musichub.business/NoPlayListFoundException.html @@ -0,0 +1 @@ +NoPlayListFoundException

NoPlayListFoundException

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total4 of 40 %0 of 0n/a112211
NoPlayListFoundException(String)40 %n/a112211
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/NoPlayListFoundException.java.html b/target/site/jacoco/musichub.business/NoPlayListFoundException.java.html new file mode 100644 index 0000000..f93e9a4 --- /dev/null +++ b/target/site/jacoco/musichub.business/NoPlayListFoundException.java.html @@ -0,0 +1,9 @@ +NoPlayListFoundException.java

NoPlayListFoundException.java

package musichub.business;
+
+public class NoPlayListFoundException extends Exception {
+
+    public NoPlayListFoundException(String msg) {
+        super(msg);
+    }
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/PathValidation.html b/target/site/jacoco/musichub.business/PathValidation.html new file mode 100644 index 0000000..3b58bb2 --- /dev/null +++ b/target/site/jacoco/musichub.business/PathValidation.html @@ -0,0 +1 @@ +PathValidation

PathValidation

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

PathValidation.java

package musichub.business;
+
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+
+/**
+ * Class offering a path validation method.
+ *
+ * @author Aimeric ADJUTOR
+ * @version 1.0
+ */
+
+public final class PathValidation {
+
+    /**
+     * Method that just throws an AssertionError if the class is called
+     * @author Aimeric ADJUTOR
+     * @throws AssertionError you can't instantiate this class
+     */
+
+    public PathValidation() {
+        throw new AssertionError("You just can't instantiate this class.");
+    }
+
+    /**
+     * Method that checks the validity of a given path
+     *
+     * @param inputPath the path given by the user
+     * @return a boolean
+     */
+
+    public static boolean isPathValid(String inputPath) {
+        Path path = Paths.get(inputPath);
+        return Files.exists(path);
+    }
+
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/PlayList.html b/target/site/jacoco/musichub.business/PlayList.html new file mode 100644 index 0000000..ae17a14 --- /dev/null +++ b/target/site/jacoco/musichub.business/PlayList.html @@ -0,0 +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 diff --git a/target/site/jacoco/musichub.business/PlayList.java.html b/target/site/jacoco/musichub.business/PlayList.java.html new file mode 100644 index 0000000..6a45004 --- /dev/null +++ b/target/site/jacoco/musichub.business/PlayList.java.html @@ -0,0 +1,101 @@ +PlayList.java

PlayList.java

package musichub.business;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+import java.util.ArrayList;
+import java.util.UUID;
+
+public class PlayList {
+    private final String title;
+    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) {
+        {
+            this.title = xmlElement.getElementsByTagName("title").item(0).getTextContent();
+
+            String uuid = null;
+            try {
+                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()))
+                this.uuid = UUID.randomUUID();
+            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;
+
+            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")) {
+                        try {
+                            this.addElement(UUID.fromString(elementElement.getTextContent()));
+                        } catch (Exception ex) {
+                            ex.printStackTrace();
+                        }
+                    }
+                }
+            }
+        }
+    }
+
+    public void addElement(UUID element) {
+        elementUUIDs.add(element);
+    }
+
+    public ArrayList<UUID> getElements() {
+        return elementUUIDs;
+    }
+
+    public String getTitle() {
+        return title;
+    }
+
+    public void createXMLElement(Document document, Element parentElement) {
+        Element playlistElement = document.createElement("playlist");
+        parentElement.appendChild(playlistElement);
+
+        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 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);
+    }
+
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Song.html b/target/site/jacoco/musichub.business/Song.html new file mode 100644 index 0000000..4af18c3 --- /dev/null +++ b/target/site/jacoco/musichub.business/Song.html @@ -0,0 +1 @@ +Song

Song

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total105 of 1050 %6 of 60 %1212262677
setGenre(String)330 %60 %668811
createXMLElement(Document, Element)290 %n/a117711
Song(Element)120 %n/a113311
Song(String, String, int, String, String, String)110 %n/a113311
Song(String, String, int, String, String)100 %n/a113311
toString()60 %n/a111111
getGenre()40 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Song.java.html b/target/site/jacoco/musichub.business/Song.java.html new file mode 100644 index 0000000..4f7f01d --- /dev/null +++ b/target/site/jacoco/musichub.business/Song.java.html @@ -0,0 +1,59 @@ +Song.java

Song.java

package musichub.business;
+
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+
+public class Song extends AudioElement {
+    private Genre genre;
+
+    public Song(String title, String artist, int length, String uid, String content, String genre) {
+        super(title, artist, length, uid, content);
+        this.setGenre(genre);
+    }
+
+    public Song(String title, String artist, int length, String content, String genre) {
+        super(title, artist, length, content);
+        this.setGenre(genre);
+    }
+
+    public Song(Element xmlElement) {
+        super(xmlElement);
+        this.setGenre(xmlElement.getElementsByTagName("genre").item(0).getTextContent());
+    }
+
+    public String getGenre() {
+        return genre.getGenre();
+    }
+
+    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;
+            case "rock" -> this.genre = Genre.ROCK;
+            case "pop" -> this.genre = Genre.POP;
+            case "rap" -> this.genre = Genre.RAP;
+        }
+    }
+
+    public String toString() {
+        return super.toString() + ", Genre = " + getGenre() + "\n";
+    }
+
+    public void createXMLElement(Document document, Element parentElement) {
+        // song element
+        Element song = document.createElement("song");
+
+        super.createXMLElement(document, song);
+
+        Element genreElement = document.createElement("genre");
+        genreElement.appendChild(document.createTextNode(genre.getGenre()));
+        song.appendChild(genreElement);
+
+        parentElement.appendChild(song);
+    }
+    
+
+}
+
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/SortByAuthor.html b/target/site/jacoco/musichub.business/SortByAuthor.html new file mode 100644 index 0000000..851cdce --- /dev/null +++ b/target/site/jacoco/musichub.business/SortByAuthor.html @@ -0,0 +1 @@ +SortByAuthor

SortByAuthor

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total9 of 90 %0 of 0n/a222222
compare(AudioElement, AudioElement)60 %n/a111111
SortByAuthor()30 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/SortByDate.html b/target/site/jacoco/musichub.business/SortByDate.html new file mode 100644 index 0000000..8f4b2f7 --- /dev/null +++ b/target/site/jacoco/musichub.business/SortByDate.html @@ -0,0 +1 @@ +SortByDate

SortByDate

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total9 of 90 %0 of 0n/a222222
compare(Album, Album)60 %n/a111111
SortByDate()30 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/SortByGenre.html b/target/site/jacoco/musichub.business/SortByGenre.html new file mode 100644 index 0000000..6dd6e7d --- /dev/null +++ b/target/site/jacoco/musichub.business/SortByGenre.html @@ -0,0 +1 @@ +SortByGenre

SortByGenre

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
Total9 of 90 %0 of 0n/a222222
compare(Song, Song)60 %n/a111111
SortByGenre()30 %n/a111111
\ No newline at end of file diff --git a/target/site/jacoco/musichub.business/index.html b/target/site/jacoco/musichub.business/index.html new file mode 100644 index 0000000..178e60b --- /dev/null +++ b/target/site/jacoco/musichub.business/index.html @@ -0,0 +1 @@ +musichub.business

musichub.business

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

musichub.business

ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
Total2 063 of 2 0800 %169 of 1690 %17217449950381831516
MusicHub.java8300 %1140 %8585201201282844
Album.java3300 %140 %161684849911
AudioElement.java2660 %110 %161672729911
PlayList.java2020 %140 %141453537711
AudioBook.java1640 %100 %171739399911
Song.java1050 %60 %121226267711
Genre.java560 %n/a33663311
Language.java490 %n/a33663311
Category.java490 %n/a33663311
NoAlbumFoundException.java0 %n/a11221111
NoPlayListFoundException.java0 %n/a11221111
NoElementFoundException.java0 %n/a11221111
PathValidation.java17100 %n/a02040201
\ No newline at end of file -- cgit v1.2.3 From 67ed18fe86ddfabe5f6c6c270273597799722a72 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sat, 26 Jun 2021 22:07:53 +0200 Subject: Tests are ok fully covered. --- log/spoteezer.log | 5 +- src/main/java/musichub/util/LogHandler.java | 12 + src/test/java/musichub/util/LogHandlerTest.java | 41 +++ target/jacoco.exec | Bin 80650 -> 27236 bytes target/maven-archiver/pom.properties | 2 +- target/maven-javadoc-plugin-stale-data.txt | 39 +- .../compile/default-compile/createdFiles.lst | 3 +- .../compile/default-compile/inputFiles.lst | 3 +- .../default-testCompile/createdFiles.lst | 3 +- .../testCompile/default-testCompile/inputFiles.lst | 3 +- target/original-spoteezer-0.1.0.jar | Bin 31900 -> 33244 bytes target/site/apidocs/allclasses-index.html | 32 +- target/site/apidocs/allpackages-index.html | 2 +- target/site/apidocs/help-doc.html | 2 +- target/site/apidocs/index-all.html | 31 +- target/site/apidocs/index.html | 2 +- target/site/apidocs/member-search-index.js | 2 +- target/site/apidocs/musichub/business/Album.html | 2 +- .../site/apidocs/musichub/business/AudioBook.html | 2 +- .../apidocs/musichub/business/AudioElement.html | 2 +- .../site/apidocs/musichub/business/Category.html | 2 +- target/site/apidocs/musichub/business/Genre.html | 2 +- .../site/apidocs/musichub/business/Language.html | 2 +- .../site/apidocs/musichub/business/MusicHub.html | 2 +- .../musichub/business/NoAlbumFoundException.html | 2 +- .../musichub/business/NoElementFoundException.html | 2 +- .../business/NoPlayListFoundException.html | 2 +- .../apidocs/musichub/business/PathValidation.html | 189 ---------- .../site/apidocs/musichub/business/PlayList.html | 2 +- target/site/apidocs/musichub/business/Song.html | 2 +- .../apidocs/musichub/business/class-use/Album.html | 2 +- .../musichub/business/class-use/AudioBook.html | 2 +- .../musichub/business/class-use/AudioElement.html | 2 +- .../musichub/business/class-use/Category.html | 2 +- .../apidocs/musichub/business/class-use/Genre.html | 2 +- .../musichub/business/class-use/Language.html | 2 +- .../musichub/business/class-use/MusicHub.html | 2 +- .../business/class-use/NoAlbumFoundException.html | 2 +- .../class-use/NoElementFoundException.html | 2 +- .../class-use/NoPlayListFoundException.html | 2 +- .../business/class-use/PathValidation.html | 65 ---- .../musichub/business/class-use/PlayList.html | 2 +- .../apidocs/musichub/business/class-use/Song.html | 2 +- .../apidocs/musichub/business/package-summary.html | 12 +- .../apidocs/musichub/business/package-tree.html | 3 +- .../apidocs/musichub/business/package-use.html | 2 +- target/site/apidocs/musichub/main/Main.html | 2 +- .../site/apidocs/musichub/main/class-use/Main.html | 2 +- .../apidocs/musichub/main/package-summary.html | 2 +- .../site/apidocs/musichub/main/package-tree.html | 2 +- target/site/apidocs/musichub/main/package-use.html | 2 +- target/site/apidocs/musichub/util/XMLHandler.html | 2 +- .../musichub/util/class-use/XMLHandler.html | 2 +- .../apidocs/musichub/util/package-summary.html | 10 +- .../site/apidocs/musichub/util/package-tree.html | 4 +- target/site/apidocs/musichub/util/package-use.html | 2 +- target/site/apidocs/overview-summary.html | 2 +- target/site/apidocs/overview-tree.html | 5 +- target/site/apidocs/serialized-form.html | 2 +- target/site/apidocs/type-search-index.js | 2 +- target/site/jacoco/index.html | 2 +- target/site/jacoco/jacoco-sessions.html | 2 +- target/site/jacoco/jacoco.csv | 5 +- target/site/jacoco/jacoco.xml | 2 +- .../jacoco/musichub.business/PathValidation.html | 1 - .../musichub.business/PathValidation.java.html | 39 -- target/site/jacoco/musichub.business/index.html | 2 +- .../jacoco/musichub.business/index.source.html | 2 +- target/site/jacoco/musichub.main/Main.html | 2 +- target/site/jacoco/musichub.main/Main.java.html | 410 +++++++++++---------- target/site/jacoco/musichub.main/index.html | 2 +- target/site/jacoco/musichub.main/index.source.html | 2 +- target/site/jacoco/musichub.util/index.html | 2 +- target/site/jacoco/musichub.util/index.source.html | 2 +- target/spoteezer-0.1.0.jar | Bin 367786 -> 369146 bytes .../TEST-musichub.business.PathValidationTest.xml | 60 --- .../musichub.business.PathValidationTest.txt | 4 - 77 files changed, 412 insertions(+), 669 deletions(-) create mode 100644 src/test/java/musichub/util/LogHandlerTest.java delete mode 100644 target/site/apidocs/musichub/business/PathValidation.html delete mode 100644 target/site/apidocs/musichub/business/class-use/PathValidation.html delete mode 100644 target/site/jacoco/musichub.business/PathValidation.html delete mode 100644 target/site/jacoco/musichub.business/PathValidation.java.html delete mode 100644 target/surefire-reports/TEST-musichub.business.PathValidationTest.xml delete mode 100644 target/surefire-reports/musichub.business.PathValidationTest.txt (limited to 'target/site/jacoco/musichub.business') diff --git a/log/spoteezer.log b/log/spoteezer.log index 091f5e0..834e29f 100644 --- a/log/spoteezer.log +++ b/log/spoteezer.log @@ -1,3 +1,6 @@ [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. \ No newline at end of file +[2021-06-26 21:45:11.453] WARNING: The music file was not found with the path you've provided. +[2021-06-26 22:05:28.614] INFO: JUnit test +[2021-06-26 22:06:26.191] INFO: JUnit test +[2021-06-26 22:06:38.453] INFO: JUnit test \ No newline at end of file diff --git a/src/main/java/musichub/util/LogHandler.java b/src/main/java/musichub/util/LogHandler.java index f6522f5..988b149 100644 --- a/src/main/java/musichub/util/LogHandler.java +++ b/src/main/java/musichub/util/LogHandler.java @@ -26,6 +26,13 @@ public final class LogHandler { throw new AssertionError("You just can't instantiate this class."); } + /** + * Method that writes a log message to spoteezer.log + * + * @param msg the message to write + * @param type the type of log + * @throws IOException if the file's not there + */ public static void write(String msg, String type) throws IOException { Timestamp timestamp = new Timestamp(System.currentTimeMillis()); @@ -42,6 +49,11 @@ public final class LogHandler { } + /** + * Method that prints the content of spoteezer.log + * + * @throws IOException if the file's not there + */ public static void read() throws IOException { Path fileName = Path.of("log/spoteezer.log"); diff --git a/src/test/java/musichub/util/LogHandlerTest.java b/src/test/java/musichub/util/LogHandlerTest.java new file mode 100644 index 0000000..17b47f6 --- /dev/null +++ b/src/test/java/musichub/util/LogHandlerTest.java @@ -0,0 +1,41 @@ +package musichub.util; + + +import org.junit.jupiter.api.Test; + +import java.io.IOException; + +import static musichub.util.LogHandler.read; +import static musichub.util.LogHandler.write; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +public class LogHandlerTest { + @Test + void testWrite() { + try { + write("JUnit test", "INFO"); + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + void testRead() { + try { + read(); + } catch (IOException e) { + e.printStackTrace(); + } + } + + @Test + void testLogHandlerClass() { + try { + LogHandler logHandlerClass = new LogHandler(); + } catch (Error ex) { + assertTrue(ex instanceof AssertionError); + assertEquals("You just can't instantiate this class.", ex.getMessage()); + } + } +} diff --git a/target/jacoco.exec b/target/jacoco.exec index a11f908..5deaa95 100644 Binary files a/target/jacoco.exec and b/target/jacoco.exec differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index 1d6eb92..9bf0389 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Sat Jun 26 14:29:09 CEST 2021 +#Sat Jun 26 22:06:26 CEST 2021 groupId=esiea.softwareengineering artifactId=spoteezer version=0.1.0 diff --git a/target/maven-javadoc-plugin-stale-data.txt b/target/maven-javadoc-plugin-stale-data.txt index 211d1c0..e5ff7a2 100644 --- a/target/maven-javadoc-plugin-stale-data.txt +++ b/target/maven-javadoc-plugin-stale-data.txt @@ -34,10 +34,11 @@ 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/NoAlbumFoundException.java' 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/NoElementFoundException.java' 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/NoPlayListFoundException.java' -'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/PathValidation.java' 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/PlayList.java' 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/Song.java' 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/main/Main.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/LogHandler.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/PathValidation.java' 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/XMLHandler.java' C:\Users\SoftA\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.0.2\junit-jupiter-api-5.0.2.jar = 1624015816799 C:\Users\SoftA\.m2\repository\org\opentest4j\opentest4j\1.0.0\opentest4j-1.0.0.jar = 1624015816785 @@ -45,21 +46,21 @@ C:\Users\SoftA\.m2\repository\org\junit\platform\junit-platform-commons\1.0.2\ju C:\Users\SoftA\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.0.2\junit-jupiter-engine-5.0.2.jar = 1624015816790 C:\Users\SoftA\.m2\repository\org\junit\platform\junit-platform-engine\1.0.2\junit-platform-engine-1.0.2.jar = 1624015816783 C:\Users\SoftA\Documents\spoteezer\src\main\java = 1624708123937 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allclasses-index.html = 1624710556861 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allpackages-index.html = 1624710556864 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\element-list = 1624710556758 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\help-doc.html = 1624710556888 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index-all.html = 1624710556884 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index.html = 1624710556844 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\jquery-ui.overrides.css = 1624710556910 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\member-search-index.js = 1624710556868 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\module-search-index.js = 1624710556865 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-summary.html = 1624710556885 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-tree.html = 1624710556841 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\package-search-index.js = 1624710556866 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\script.js = 1624710556892 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\search.js = 1624710556895 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\serialized-form.html = 1624710556785 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\stylesheet.css = 1624710556891 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\tag-search-index.js = 1624710556869 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\type-search-index.js = 1624710556867 \ No newline at end of file +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allclasses-index.html = 1624737994231 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allpackages-index.html = 1624737994233 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\element-list = 1624737994134 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\help-doc.html = 1624737994257 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index-all.html = 1624737994253 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index.html = 1624737994214 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\jquery-ui.overrides.css = 1624737994280 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\member-search-index.js = 1624737994238 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\module-search-index.js = 1624737994234 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-summary.html = 1624737994255 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-tree.html = 1624737994211 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\package-search-index.js = 1624737994235 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\script.js = 1624737994260 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\search.js = 1624737994263 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\serialized-form.html = 1624737994156 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\stylesheet.css = 1624737994259 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\tag-search-index.js = 1624737994239 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\type-search-index.js = 1624737994236 \ No newline at end of file diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst index 26c13ed..acee52e 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -1,6 +1,6 @@ musichub\util\XMLHandler.class -musichub\business\PathValidation.class musichub\business\NoElementFoundException.class +musichub\util\LogHandler.class musichub\business\Language.class musichub\business\PlayList.class musichub\main\Main.class @@ -11,6 +11,7 @@ musichub\business\SortByAuthor.class musichub\business\NoAlbumFoundException.class musichub\business\AudioBook.class musichub\business\Song.class +musichub\util\PathValidation.class musichub\business\Genre.class musichub\business\NoPlayListFoundException.class musichub\business\Category.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index 93f6593..a533945 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -5,9 +5,10 @@ C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\main\Main.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\AudioBook.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\Language.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\MusicHub.java +C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\util\LogHandler.java +C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\util\PathValidation.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\Album.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\AudioElement.java -C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\PathValidation.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\Category.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\NoAlbumFoundException.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\NoPlayListFoundException.java 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 649a939..13c2c99 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 +1,2 @@ -musichub\business\PathValidationTest.class +musichub\util\PathValidationTest.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 9b5d3f0..1b9eea3 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 +1,2 @@ -C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\business\PathValidationTest.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/original-spoteezer-0.1.0.jar b/target/original-spoteezer-0.1.0.jar index fbeb8a5..e14293d 100644 Binary files a/target/original-spoteezer-0.1.0.jar and b/target/original-spoteezer-0.1.0.jar differ diff --git a/target/site/apidocs/allclasses-index.html b/target/site/apidocs/allclasses-index.html index 767b8ab..e4d9f65 100644 --- a/target/site/apidocs/allclasses-index.html +++ b/target/site/apidocs/allclasses-index.html @@ -2,7 +2,7 @@ - + All Classes (spoteezer 0.1.0 API) @@ -76,26 +76,30 @@ loadScripts(document, 'script');
 
 
- -
 
- + +
+
Class offering a log writing method.
+
+
 
- -
 
- + +
 
+
 
- +
 
- -
+ +
 
+ +
Class offering a path validation method.
- -
 
- +
 
- +
 
+ +
 
diff --git a/target/site/apidocs/allpackages-index.html b/target/site/apidocs/allpackages-index.html index daffbfc..1670da5 100644 --- a/target/site/apidocs/allpackages-index.html +++ b/target/site/apidocs/allpackages-index.html @@ -2,7 +2,7 @@ - + All Packages (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/help-doc.html b/target/site/apidocs/help-doc.html index 084eeb0..4d85c2b 100644 --- a/target/site/apidocs/help-doc.html +++ b/target/site/apidocs/help-doc.html @@ -2,7 +2,7 @@ - + API Help (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/index-all.html b/target/site/apidocs/index-all.html index bb26bd1..0df0f51 100644 --- a/target/site/apidocs/index-all.html +++ b/target/site/apidocs/index-all.html @@ -2,7 +2,7 @@ - + Index (spoteezer 0.1.0 API) @@ -54,7 +54,7 @@ loadScripts(document, 'script');

Index

-A C D E F G H I J L M N P R S T U V X Y 
All Classes|All Packages|Serialized Form +A C D E F G H I J L M N P R S T U V W X Y 
All Classes|All Packages|Serialized Form

A

addAlbum(Album) - Method in class musichub.business.MusicHub
@@ -202,7 +202,7 @@ loadScripts(document, 'script');

I

-
isPathValid(String) - Static method in class musichub.business.PathValidation
+
isPathValid(String) - Static method in class musichub.util.PathValidation
Method that checks the validity of a given path
@@ -220,6 +220,14 @@ loadScripts(document, 'script');
 
lengthInSeconds - Variable in class musichub.business.AudioElement
 
+
LogHandler - Class in musichub.util
+
+
Class offering a log writing method.
+
+
LogHandler() - Constructor for class musichub.util.LogHandler
+
+
Method that just throws an AssertionError if the class is called
+

M

@@ -263,11 +271,11 @@ loadScripts(document, 'script');
parseXMLFile(String) - Method in class musichub.util.XMLHandler
 
-
PathValidation - Class in musichub.business
+
PathValidation - Class in musichub.util
Class offering a path validation method.
-
PathValidation() - Constructor for class musichub.business.PathValidation
+
PathValidation() - Constructor for class musichub.util.PathValidation
Method that just throws an AssertionError if the class is called
@@ -290,6 +298,10 @@ loadScripts(document, 'script');
RAP - Enum constant in enum class musichub.business.Genre
 
+
read() - Static method in class musichub.util.LogHandler
+
+
Method that prints the content of spoteezer.log
+
ROCK - Enum constant in enum class musichub.business.Genre
 
@@ -368,6 +380,13 @@ the order they are declared. the order they are declared.
+

W

+
+
write(String, String) - Static method in class musichub.util.LogHandler
+
+
Method that writes a log message to spoteezer.log
+
+

X

XMLHandler - Class in musichub.util
@@ -380,7 +399,7 @@ the order they are declared.
YOUTH - Enum constant in enum class musichub.business.Category
 
-A C D E F G H I J L M N P R S T U V X Y 
All Classes|All Packages|Serialized Form +A C D E F G H I J L M N P R S T U V W X Y 
All Classes|All Packages|Serialized Form

diff --git a/target/site/apidocs/index.html b/target/site/apidocs/index.html index a865d2c..e5010d9 100644 --- a/target/site/apidocs/index.html +++ b/target/site/apidocs/index.html @@ -2,7 +2,7 @@ - + Overview (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/member-search-index.js b/target/site/apidocs/member-search-index.js index 7c431d3..f583be9 100644 --- a/target/site/apidocs/member-search-index.js +++ b/target/site/apidocs/member-search-index.js @@ -1 +1 @@ -memberSearchIndex = [{"p":"musichub.business","c":"MusicHub","l":"addAlbum(Album)","u":"addAlbum(musichub.business.Album)"},{"p":"musichub.business","c":"MusicHub","l":"addElement(AudioElement)","u":"addElement(musichub.business.AudioElement)"},{"p":"musichub.business","c":"PlayList","l":"addElement(UUID)","u":"addElement(java.util.UUID)"},{"p":"musichub.business","c":"MusicHub","l":"addElementToAlbum(String, String)","u":"addElementToAlbum(java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"addElementToPlayList(String, String)","u":"addElementToPlayList(java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"addPlaylist(PlayList)","u":"addPlaylist(musichub.business.PlayList)"},{"p":"musichub.business","c":"Album","l":"addSong(UUID)","u":"addSong(java.util.UUID)"},{"p":"musichub.business","c":"Album","l":"Album(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"Album","l":"Album(String, String, int, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String)"},{"p":"musichub.business","c":"Album","l":"Album(String, String, int, String, String, ArrayList)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.util.ArrayList)"},{"p":"musichub.business","c":"MusicHub","l":"ALBUMS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"albums()"},{"p":"musichub.business","c":"AudioElement","l":"artist"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(String, String, int, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(String, String, int, String, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(String, String, int, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(String, String, int, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Genre","l":"CLASSIC"},{"p":"musichub.business","c":"AudioElement","l":"content"},{"p":"musichub.util","c":"XMLHandler","l":"createXMLDocument()"},{"p":"musichub.business","c":"Album","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioBook","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioElement","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"PlayList","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"Song","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.util","c":"XMLHandler","l":"createXMLFile(Document, String)","u":"createXMLFile(org.w3c.dom.Document,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"deletePlayList(String)","u":"deletePlayList(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"DIR"},{"p":"musichub.business","c":"Category","l":"DOCUMENTARY"},{"p":"musichub.business","c":"MusicHub","l":"ELEMENTS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"elements()"},{"p":"musichub.business","c":"Language","l":"ENGLISH"},{"p":"musichub.business","c":"Language","l":"FRENCH"},{"p":"musichub.business","c":"Language","l":"GERMAN"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumSongs(String)","u":"getAlbumSongs(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumSongsSortedByGenre(String)","u":"getAlbumSongsSortedByGenre(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumsTitlesSortedByDate()"},{"p":"musichub.business","c":"AudioElement","l":"getArtist()"},{"p":"musichub.business","c":"MusicHub","l":"getAudiobooksTitlesSortedByAuthor()"},{"p":"musichub.business","c":"MusicHub","l":"getAudioElement(List, String)","u":"getAudioElement(java.util.List,java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"getCategory()"},{"p":"musichub.business","c":"Category","l":"getCategory()"},{"p":"musichub.business","c":"Album","l":"getDate()"},{"p":"musichub.business","c":"PlayList","l":"getElements()"},{"p":"musichub.business","c":"Genre","l":"getGenre()"},{"p":"musichub.business","c":"Song","l":"getGenre()"},{"p":"musichub.business","c":"AudioBook","l":"getLanguage()"},{"p":"musichub.business","c":"Language","l":"getLanguage()"},{"p":"musichub.business","c":"Album","l":"getSongs()"},{"p":"musichub.business","c":"Album","l":"getSongsRandomly()"},{"p":"musichub.business","c":"Album","l":"getTitle()"},{"p":"musichub.business","c":"AudioElement","l":"getTitle()"},{"p":"musichub.business","c":"PlayList","l":"getTitle()"},{"p":"musichub.business","c":"AudioElement","l":"getUUID()"},{"p":"musichub.business","c":"Genre","l":"HIPHOP"},{"p":"musichub.business","c":"PathValidation","l":"isPathValid(String)","u":"isPathValid(java.lang.String)"},{"p":"musichub.business","c":"Language","l":"ITALIAN"},{"p":"musichub.business","c":"Genre","l":"JAZZ"},{"p":"musichub.business","c":"AudioElement","l":"lengthInSeconds"},{"p":"musichub.main","c":"Main","l":"Main()","u":"%3Cinit%3E()"},{"p":"musichub.main","c":"Main","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"musichub.business","c":"AudioElement","l":"manageAudioElement()"},{"p":"musichub.business","c":"MusicHub","l":"MusicHub()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"NoAlbumFoundException","l":"NoAlbumFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"NoElementFoundException","l":"NoElementFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"NoPlayListFoundException","l":"NoPlayListFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"Category","l":"NOVEL"},{"p":"musichub.util","c":"XMLHandler","l":"parseXMLFile(String)","u":"parseXMLFile(java.lang.String)"},{"p":"musichub.business","c":"PathValidation","l":"PathValidation()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"PlayList","l":"PlayList(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"PlayList","l":"PlayList(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"PlayList","l":"PlayList(String, String, ArrayList)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.util.ArrayList)"},{"p":"musichub.business","c":"MusicHub","l":"PLAYLISTS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"playlists()"},{"p":"musichub.business","c":"Genre","l":"POP"},{"p":"musichub.business","c":"Genre","l":"RAP"},{"p":"musichub.business","c":"Genre","l":"ROCK"},{"p":"musichub.business","c":"MusicHub","l":"saveAlbums()"},{"p":"musichub.business","c":"MusicHub","l":"saveElements()"},{"p":"musichub.business","c":"MusicHub","l":"savePlayLists()"},{"p":"musichub.business","c":"AudioBook","l":"setCategory(String)","u":"setCategory(java.lang.String)"},{"p":"musichub.business","c":"Song","l":"setGenre(String)","u":"setGenre(java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"setLanguage(String)","u":"setLanguage(java.lang.String)"},{"p":"musichub.business","c":"Song","l":"Song(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"Song","l":"Song(String, String, int, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Song","l":"Song(String, String, int, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Language","l":"SPANISH"},{"p":"musichub.business","c":"Category","l":"SPEECH"},{"p":"musichub.business","c":"Category","l":"THEATER"},{"p":"musichub.business","c":"AudioElement","l":"title"},{"p":"musichub.business","c":"AudioBook","l":"toString()"},{"p":"musichub.business","c":"AudioElement","l":"toString()"},{"p":"musichub.business","c":"Song","l":"toString()"},{"p":"musichub.business","c":"AudioElement","l":"uuid"},{"p":"musichub.business","c":"Category","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Genre","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Language","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Category","l":"values()"},{"p":"musichub.business","c":"Genre","l":"values()"},{"p":"musichub.business","c":"Language","l":"values()"},{"p":"musichub.util","c":"XMLHandler","l":"XMLHandler()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"Category","l":"YOUTH"}];updateSearchResults(); \ No newline at end of file +memberSearchIndex = [{"p":"musichub.business","c":"MusicHub","l":"addAlbum(Album)","u":"addAlbum(musichub.business.Album)"},{"p":"musichub.business","c":"MusicHub","l":"addElement(AudioElement)","u":"addElement(musichub.business.AudioElement)"},{"p":"musichub.business","c":"PlayList","l":"addElement(UUID)","u":"addElement(java.util.UUID)"},{"p":"musichub.business","c":"MusicHub","l":"addElementToAlbum(String, String)","u":"addElementToAlbum(java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"addElementToPlayList(String, String)","u":"addElementToPlayList(java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"addPlaylist(PlayList)","u":"addPlaylist(musichub.business.PlayList)"},{"p":"musichub.business","c":"Album","l":"addSong(UUID)","u":"addSong(java.util.UUID)"},{"p":"musichub.business","c":"Album","l":"Album(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"Album","l":"Album(String, String, int, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String)"},{"p":"musichub.business","c":"Album","l":"Album(String, String, int, String, String, ArrayList)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.util.ArrayList)"},{"p":"musichub.business","c":"MusicHub","l":"ALBUMS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"albums()"},{"p":"musichub.business","c":"AudioElement","l":"artist"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(String, String, int, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(String, String, int, String, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(String, String, int, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(String, String, int, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Genre","l":"CLASSIC"},{"p":"musichub.business","c":"AudioElement","l":"content"},{"p":"musichub.util","c":"XMLHandler","l":"createXMLDocument()"},{"p":"musichub.business","c":"Album","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioBook","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioElement","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"PlayList","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"Song","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.util","c":"XMLHandler","l":"createXMLFile(Document, String)","u":"createXMLFile(org.w3c.dom.Document,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"deletePlayList(String)","u":"deletePlayList(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"DIR"},{"p":"musichub.business","c":"Category","l":"DOCUMENTARY"},{"p":"musichub.business","c":"MusicHub","l":"ELEMENTS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"elements()"},{"p":"musichub.business","c":"Language","l":"ENGLISH"},{"p":"musichub.business","c":"Language","l":"FRENCH"},{"p":"musichub.business","c":"Language","l":"GERMAN"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumSongs(String)","u":"getAlbumSongs(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumSongsSortedByGenre(String)","u":"getAlbumSongsSortedByGenre(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumsTitlesSortedByDate()"},{"p":"musichub.business","c":"AudioElement","l":"getArtist()"},{"p":"musichub.business","c":"MusicHub","l":"getAudiobooksTitlesSortedByAuthor()"},{"p":"musichub.business","c":"MusicHub","l":"getAudioElement(List, String)","u":"getAudioElement(java.util.List,java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"getCategory()"},{"p":"musichub.business","c":"Category","l":"getCategory()"},{"p":"musichub.business","c":"Album","l":"getDate()"},{"p":"musichub.business","c":"PlayList","l":"getElements()"},{"p":"musichub.business","c":"Genre","l":"getGenre()"},{"p":"musichub.business","c":"Song","l":"getGenre()"},{"p":"musichub.business","c":"AudioBook","l":"getLanguage()"},{"p":"musichub.business","c":"Language","l":"getLanguage()"},{"p":"musichub.business","c":"Album","l":"getSongs()"},{"p":"musichub.business","c":"Album","l":"getSongsRandomly()"},{"p":"musichub.business","c":"Album","l":"getTitle()"},{"p":"musichub.business","c":"AudioElement","l":"getTitle()"},{"p":"musichub.business","c":"PlayList","l":"getTitle()"},{"p":"musichub.business","c":"AudioElement","l":"getUUID()"},{"p":"musichub.business","c":"Genre","l":"HIPHOP"},{"p":"musichub.util","c":"PathValidation","l":"isPathValid(String)","u":"isPathValid(java.lang.String)"},{"p":"musichub.business","c":"Language","l":"ITALIAN"},{"p":"musichub.business","c":"Genre","l":"JAZZ"},{"p":"musichub.business","c":"AudioElement","l":"lengthInSeconds"},{"p":"musichub.util","c":"LogHandler","l":"LogHandler()","u":"%3Cinit%3E()"},{"p":"musichub.main","c":"Main","l":"Main()","u":"%3Cinit%3E()"},{"p":"musichub.main","c":"Main","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"musichub.business","c":"AudioElement","l":"manageAudioElement()"},{"p":"musichub.business","c":"MusicHub","l":"MusicHub()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"NoAlbumFoundException","l":"NoAlbumFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"NoElementFoundException","l":"NoElementFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"NoPlayListFoundException","l":"NoPlayListFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"Category","l":"NOVEL"},{"p":"musichub.util","c":"XMLHandler","l":"parseXMLFile(String)","u":"parseXMLFile(java.lang.String)"},{"p":"musichub.util","c":"PathValidation","l":"PathValidation()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"PlayList","l":"PlayList(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"PlayList","l":"PlayList(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"PlayList","l":"PlayList(String, String, ArrayList)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.util.ArrayList)"},{"p":"musichub.business","c":"MusicHub","l":"PLAYLISTS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"playlists()"},{"p":"musichub.business","c":"Genre","l":"POP"},{"p":"musichub.business","c":"Genre","l":"RAP"},{"p":"musichub.util","c":"LogHandler","l":"read()"},{"p":"musichub.business","c":"Genre","l":"ROCK"},{"p":"musichub.business","c":"MusicHub","l":"saveAlbums()"},{"p":"musichub.business","c":"MusicHub","l":"saveElements()"},{"p":"musichub.business","c":"MusicHub","l":"savePlayLists()"},{"p":"musichub.business","c":"AudioBook","l":"setCategory(String)","u":"setCategory(java.lang.String)"},{"p":"musichub.business","c":"Song","l":"setGenre(String)","u":"setGenre(java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"setLanguage(String)","u":"setLanguage(java.lang.String)"},{"p":"musichub.business","c":"Song","l":"Song(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"Song","l":"Song(String, String, int, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Song","l":"Song(String, String, int, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Language","l":"SPANISH"},{"p":"musichub.business","c":"Category","l":"SPEECH"},{"p":"musichub.business","c":"Category","l":"THEATER"},{"p":"musichub.business","c":"AudioElement","l":"title"},{"p":"musichub.business","c":"AudioBook","l":"toString()"},{"p":"musichub.business","c":"AudioElement","l":"toString()"},{"p":"musichub.business","c":"Song","l":"toString()"},{"p":"musichub.business","c":"AudioElement","l":"uuid"},{"p":"musichub.business","c":"Category","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Genre","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Language","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Category","l":"values()"},{"p":"musichub.business","c":"Genre","l":"values()"},{"p":"musichub.business","c":"Language","l":"values()"},{"p":"musichub.util","c":"LogHandler","l":"write(String, String)","u":"write(java.lang.String,java.lang.String)"},{"p":"musichub.util","c":"XMLHandler","l":"XMLHandler()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"Category","l":"YOUTH"}];updateSearchResults(); \ No newline at end of file diff --git a/target/site/apidocs/musichub/business/Album.html b/target/site/apidocs/musichub/business/Album.html index 824d2f6..fd0beaa 100644 --- a/target/site/apidocs/musichub/business/Album.html +++ b/target/site/apidocs/musichub/business/Album.html @@ -2,7 +2,7 @@ - + Album (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/AudioBook.html b/target/site/apidocs/musichub/business/AudioBook.html index f171946..211e1b0 100644 --- a/target/site/apidocs/musichub/business/AudioBook.html +++ b/target/site/apidocs/musichub/business/AudioBook.html @@ -2,7 +2,7 @@ - + AudioBook (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/AudioElement.html b/target/site/apidocs/musichub/business/AudioElement.html index f2ecb62..fe6ad42 100644 --- a/target/site/apidocs/musichub/business/AudioElement.html +++ b/target/site/apidocs/musichub/business/AudioElement.html @@ -2,7 +2,7 @@ - + AudioElement (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/Category.html b/target/site/apidocs/musichub/business/Category.html index 6fa6ed1..4266493 100644 --- a/target/site/apidocs/musichub/business/Category.html +++ b/target/site/apidocs/musichub/business/Category.html @@ -2,7 +2,7 @@ - + Category (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/Genre.html b/target/site/apidocs/musichub/business/Genre.html index 404433a..96e2762 100644 --- a/target/site/apidocs/musichub/business/Genre.html +++ b/target/site/apidocs/musichub/business/Genre.html @@ -2,7 +2,7 @@ - + Genre (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/Language.html b/target/site/apidocs/musichub/business/Language.html index 7c71eef..6bebff8 100644 --- a/target/site/apidocs/musichub/business/Language.html +++ b/target/site/apidocs/musichub/business/Language.html @@ -2,7 +2,7 @@ - + Language (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/MusicHub.html b/target/site/apidocs/musichub/business/MusicHub.html index a96d88e..4af462c 100644 --- a/target/site/apidocs/musichub/business/MusicHub.html +++ b/target/site/apidocs/musichub/business/MusicHub.html @@ -2,7 +2,7 @@ - + MusicHub (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/NoAlbumFoundException.html b/target/site/apidocs/musichub/business/NoAlbumFoundException.html index 51defb8..16143e3 100644 --- a/target/site/apidocs/musichub/business/NoAlbumFoundException.html +++ b/target/site/apidocs/musichub/business/NoAlbumFoundException.html @@ -2,7 +2,7 @@ - + NoAlbumFoundException (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/NoElementFoundException.html b/target/site/apidocs/musichub/business/NoElementFoundException.html index b935b6c..3a04446 100644 --- a/target/site/apidocs/musichub/business/NoElementFoundException.html +++ b/target/site/apidocs/musichub/business/NoElementFoundException.html @@ -2,7 +2,7 @@ - + NoElementFoundException (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/NoPlayListFoundException.html b/target/site/apidocs/musichub/business/NoPlayListFoundException.html index 56d2aaf..4a9413a 100644 --- a/target/site/apidocs/musichub/business/NoPlayListFoundException.html +++ b/target/site/apidocs/musichub/business/NoPlayListFoundException.html @@ -2,7 +2,7 @@ - + NoPlayListFoundException (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/PathValidation.html b/target/site/apidocs/musichub/business/PathValidation.html deleted file mode 100644 index 9a7945c..0000000 --- a/target/site/apidocs/musichub/business/PathValidation.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - - -PathValidation (spoteezer 0.1.0 API) - - - - - - - - - - - - - - - -
- -
-
- -
- -

Class PathValidation

-
-
java.lang.Object -
musichub.business.PathValidation
-
-
-
-
public final class PathValidation -extends Object
-
Class offering a path validation method.
-
-
Version:
-
1.0
-
Author:
-
Aimeric ADJUTOR
-
-
-
- -
-
-
    - -
  • -
    -

    Constructor Details

    -
      -
    • -
      -

      PathValidation

      -
      public PathValidation()
      -
      Method that just throws an AssertionError if the class is called
      -
      -
      Throws:
      -
      AssertionError - you can't instantiate this class
      -
      -
      -
    • -
    -
    -
  • - -
  • -
    -

    Method Details

    -
      -
    • -
      -

      isPathValid

      -
      public static boolean isPathValid(String inputPath)
      -
      Method that checks the validity of a given path
      -
      -
      Parameters:
      -
      inputPath - the path given by the user
      -
      Returns:
      -
      a boolean
      -
      -
      -
    • -
    -
    -
  • -
-
- -
-
-
- -
-
-
- - diff --git a/target/site/apidocs/musichub/business/PlayList.html b/target/site/apidocs/musichub/business/PlayList.html index 533a2ad..a1ccc9b 100644 --- a/target/site/apidocs/musichub/business/PlayList.html +++ b/target/site/apidocs/musichub/business/PlayList.html @@ -2,7 +2,7 @@ - + PlayList (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/Song.html b/target/site/apidocs/musichub/business/Song.html index aa13772..82582dd 100644 --- a/target/site/apidocs/musichub/business/Song.html +++ b/target/site/apidocs/musichub/business/Song.html @@ -2,7 +2,7 @@ - + Song (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/Album.html b/target/site/apidocs/musichub/business/class-use/Album.html index a799c69..097e8c7 100644 --- a/target/site/apidocs/musichub/business/class-use/Album.html +++ b/target/site/apidocs/musichub/business/class-use/Album.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.business.Album (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/AudioBook.html b/target/site/apidocs/musichub/business/class-use/AudioBook.html index 6054d2d..a109ca3 100644 --- a/target/site/apidocs/musichub/business/class-use/AudioBook.html +++ b/target/site/apidocs/musichub/business/class-use/AudioBook.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.business.AudioBook (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/AudioElement.html b/target/site/apidocs/musichub/business/class-use/AudioElement.html index ab20cf8..1249775 100644 --- a/target/site/apidocs/musichub/business/class-use/AudioElement.html +++ b/target/site/apidocs/musichub/business/class-use/AudioElement.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.business.AudioElement (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/Category.html b/target/site/apidocs/musichub/business/class-use/Category.html index d0b7007..022df3a 100644 --- a/target/site/apidocs/musichub/business/class-use/Category.html +++ b/target/site/apidocs/musichub/business/class-use/Category.html @@ -2,7 +2,7 @@ - + Uses of Enum Class musichub.business.Category (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/Genre.html b/target/site/apidocs/musichub/business/class-use/Genre.html index 94c178d..a9cd613 100644 --- a/target/site/apidocs/musichub/business/class-use/Genre.html +++ b/target/site/apidocs/musichub/business/class-use/Genre.html @@ -2,7 +2,7 @@ - + Uses of Enum Class musichub.business.Genre (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/Language.html b/target/site/apidocs/musichub/business/class-use/Language.html index 6df04ff..86ed23a 100644 --- a/target/site/apidocs/musichub/business/class-use/Language.html +++ b/target/site/apidocs/musichub/business/class-use/Language.html @@ -2,7 +2,7 @@ - + Uses of Enum Class musichub.business.Language (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/MusicHub.html b/target/site/apidocs/musichub/business/class-use/MusicHub.html index 2f00178..683a7e5 100644 --- a/target/site/apidocs/musichub/business/class-use/MusicHub.html +++ b/target/site/apidocs/musichub/business/class-use/MusicHub.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.business.MusicHub (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/NoAlbumFoundException.html b/target/site/apidocs/musichub/business/class-use/NoAlbumFoundException.html index c11e6be..3d190ec 100644 --- a/target/site/apidocs/musichub/business/class-use/NoAlbumFoundException.html +++ b/target/site/apidocs/musichub/business/class-use/NoAlbumFoundException.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.business.NoAlbumFoundException (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/NoElementFoundException.html b/target/site/apidocs/musichub/business/class-use/NoElementFoundException.html index 70bbffa..07bc200 100644 --- a/target/site/apidocs/musichub/business/class-use/NoElementFoundException.html +++ b/target/site/apidocs/musichub/business/class-use/NoElementFoundException.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.business.NoElementFoundException (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/NoPlayListFoundException.html b/target/site/apidocs/musichub/business/class-use/NoPlayListFoundException.html index 97c5c34..0a7a442 100644 --- a/target/site/apidocs/musichub/business/class-use/NoPlayListFoundException.html +++ b/target/site/apidocs/musichub/business/class-use/NoPlayListFoundException.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.business.NoPlayListFoundException (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/PathValidation.html b/target/site/apidocs/musichub/business/class-use/PathValidation.html deleted file mode 100644 index b8a4f5a..0000000 --- a/target/site/apidocs/musichub/business/class-use/PathValidation.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - -Uses of Class musichub.business.PathValidation (spoteezer 0.1.0 API) - - - - - - - - - - - - - - - -
- -
-
-
-

Uses of Class
musichub.business.PathValidation

-
-No usage of musichub.business.PathValidation
-
-
- -
-
-
- - diff --git a/target/site/apidocs/musichub/business/class-use/PlayList.html b/target/site/apidocs/musichub/business/class-use/PlayList.html index 7d039a5..151e091 100644 --- a/target/site/apidocs/musichub/business/class-use/PlayList.html +++ b/target/site/apidocs/musichub/business/class-use/PlayList.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.business.PlayList (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/class-use/Song.html b/target/site/apidocs/musichub/business/class-use/Song.html index 853c506..f7caf68 100644 --- a/target/site/apidocs/musichub/business/class-use/Song.html +++ b/target/site/apidocs/musichub/business/class-use/Song.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.business.Song (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/business/package-summary.html b/target/site/apidocs/musichub/business/package-summary.html index 57c22af..ab9bef3 100644 --- a/target/site/apidocs/musichub/business/package-summary.html +++ b/target/site/apidocs/musichub/business/package-summary.html @@ -2,7 +2,7 @@ - + musichub.business (spoteezer 0.1.0 API) @@ -71,14 +71,10 @@ loadScripts(document, 'script');
 
 
- -
-
Class offering a path validation method.
-
- -
 
- +
 
+ +
 
  • diff --git a/target/site/apidocs/musichub/business/package-tree.html b/target/site/apidocs/musichub/business/package-tree.html index 31cbe13..e1a5f5b 100644 --- a/target/site/apidocs/musichub/business/package-tree.html +++ b/target/site/apidocs/musichub/business/package-tree.html @@ -2,7 +2,7 @@ - + musichub.business Class Hierarchy (spoteezer 0.1.0 API) @@ -71,7 +71,6 @@ loadScripts(document, 'script');
  • musichub.business.MusicHub
  • -
  • musichub.business.PathValidation
  • musichub.business.PlayList
  • java.lang.Throwable (implements java.io.Serializable)
      diff --git a/target/site/apidocs/musichub/business/package-use.html b/target/site/apidocs/musichub/business/package-use.html index c75e960..89e8d56 100644 --- a/target/site/apidocs/musichub/business/package-use.html +++ b/target/site/apidocs/musichub/business/package-use.html @@ -2,7 +2,7 @@ - + Uses of Package musichub.business (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/main/Main.html b/target/site/apidocs/musichub/main/Main.html index d060888..2a6bcf8 100644 --- a/target/site/apidocs/musichub/main/Main.html +++ b/target/site/apidocs/musichub/main/Main.html @@ -2,7 +2,7 @@ - + Main (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/main/class-use/Main.html b/target/site/apidocs/musichub/main/class-use/Main.html index 2ea6da4..819433d 100644 --- a/target/site/apidocs/musichub/main/class-use/Main.html +++ b/target/site/apidocs/musichub/main/class-use/Main.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.main.Main (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/main/package-summary.html b/target/site/apidocs/musichub/main/package-summary.html index 87c57b3..afcd6ad 100644 --- a/target/site/apidocs/musichub/main/package-summary.html +++ b/target/site/apidocs/musichub/main/package-summary.html @@ -2,7 +2,7 @@ - + musichub.main (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/main/package-tree.html b/target/site/apidocs/musichub/main/package-tree.html index d6354f0..393b386 100644 --- a/target/site/apidocs/musichub/main/package-tree.html +++ b/target/site/apidocs/musichub/main/package-tree.html @@ -2,7 +2,7 @@ - + musichub.main Class Hierarchy (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/main/package-use.html b/target/site/apidocs/musichub/main/package-use.html index 68e7ada..0747159 100644 --- a/target/site/apidocs/musichub/main/package-use.html +++ b/target/site/apidocs/musichub/main/package-use.html @@ -2,7 +2,7 @@ - + Uses of Package musichub.main (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/util/XMLHandler.html b/target/site/apidocs/musichub/util/XMLHandler.html index 52734c9..53ffdbe 100644 --- a/target/site/apidocs/musichub/util/XMLHandler.html +++ b/target/site/apidocs/musichub/util/XMLHandler.html @@ -2,7 +2,7 @@ - + XMLHandler (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/util/class-use/XMLHandler.html b/target/site/apidocs/musichub/util/class-use/XMLHandler.html index 04b02a0..8c6ad08 100644 --- a/target/site/apidocs/musichub/util/class-use/XMLHandler.html +++ b/target/site/apidocs/musichub/util/class-use/XMLHandler.html @@ -2,7 +2,7 @@ - + Uses of Class musichub.util.XMLHandler (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/musichub/util/package-summary.html b/target/site/apidocs/musichub/util/package-summary.html index 72ff644..24257be 100644 --- a/target/site/apidocs/musichub/util/package-summary.html +++ b/target/site/apidocs/musichub/util/package-summary.html @@ -2,7 +2,7 @@ - + musichub.util (spoteezer 0.1.0 API) @@ -63,6 +63,14 @@ loadScripts(document, 'script');
      Class
      Description
      + +
      +
      Class offering a log writing method.
      +
      + +
      +
      Class offering a path validation method.
      +
       
      diff --git a/target/site/apidocs/musichub/util/package-tree.html b/target/site/apidocs/musichub/util/package-tree.html index 7817d93..ace19b6 100644 --- a/target/site/apidocs/musichub/util/package-tree.html +++ b/target/site/apidocs/musichub/util/package-tree.html @@ -2,7 +2,7 @@ - + musichub.util Class Hierarchy (spoteezer 0.1.0 API) @@ -63,6 +63,8 @@ loadScripts(document, 'script');
      • java.lang.Object
      • diff --git a/target/site/apidocs/musichub/util/package-use.html b/target/site/apidocs/musichub/util/package-use.html index afe8c6d..02a3fc7 100644 --- a/target/site/apidocs/musichub/util/package-use.html +++ b/target/site/apidocs/musichub/util/package-use.html @@ -2,7 +2,7 @@ - + Uses of Package musichub.util (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/overview-summary.html b/target/site/apidocs/overview-summary.html index 1961838..370d2cb 100644 --- a/target/site/apidocs/overview-summary.html +++ b/target/site/apidocs/overview-summary.html @@ -2,7 +2,7 @@ - + spoteezer 0.1.0 API diff --git a/target/site/apidocs/overview-tree.html b/target/site/apidocs/overview-tree.html index 69d606a..943af3e 100644 --- a/target/site/apidocs/overview-tree.html +++ b/target/site/apidocs/overview-tree.html @@ -2,7 +2,7 @@ - + Class Hierarchy (spoteezer 0.1.0 API) @@ -72,9 +72,10 @@ loadScripts(document, 'script');
      • musichub.business.Song
      +
    • musichub.util.LogHandler
    • musichub.main.Main
    • musichub.business.MusicHub
    • -
    • musichub.business.PathValidation
    • +
    • musichub.util.PathValidation
    • musichub.business.PlayList
    • java.lang.Throwable (implements java.io.Serializable)
        diff --git a/target/site/apidocs/serialized-form.html b/target/site/apidocs/serialized-form.html index 011c84f..781fdeb 100644 --- a/target/site/apidocs/serialized-form.html +++ b/target/site/apidocs/serialized-form.html @@ -2,7 +2,7 @@ - + Serialized Form (spoteezer 0.1.0 API) diff --git a/target/site/apidocs/type-search-index.js b/target/site/apidocs/type-search-index.js index be00fa7..26dac6f 100644 --- a/target/site/apidocs/type-search-index.js +++ b/target/site/apidocs/type-search-index.js @@ -1 +1 @@ -typeSearchIndex = [{"p":"musichub.business","l":"Album"},{"l":"All Classes","u":"allclasses-index.html"},{"p":"musichub.business","l":"AudioBook"},{"p":"musichub.business","l":"AudioElement"},{"p":"musichub.business","l":"Category"},{"p":"musichub.business","l":"Genre"},{"p":"musichub.business","l":"Language"},{"p":"musichub.main","l":"Main"},{"p":"musichub.business","l":"MusicHub"},{"p":"musichub.business","l":"NoAlbumFoundException"},{"p":"musichub.business","l":"NoElementFoundException"},{"p":"musichub.business","l":"NoPlayListFoundException"},{"p":"musichub.business","l":"PathValidation"},{"p":"musichub.business","l":"PlayList"},{"p":"musichub.business","l":"Song"},{"p":"musichub.util","l":"XMLHandler"}];updateSearchResults(); \ No newline at end of file +typeSearchIndex = [{"p":"musichub.business","l":"Album"},{"l":"All Classes","u":"allclasses-index.html"},{"p":"musichub.business","l":"AudioBook"},{"p":"musichub.business","l":"AudioElement"},{"p":"musichub.business","l":"Category"},{"p":"musichub.business","l":"Genre"},{"p":"musichub.business","l":"Language"},{"p":"musichub.util","l":"LogHandler"},{"p":"musichub.main","l":"Main"},{"p":"musichub.business","l":"MusicHub"},{"p":"musichub.business","l":"NoAlbumFoundException"},{"p":"musichub.business","l":"NoElementFoundException"},{"p":"musichub.business","l":"NoPlayListFoundException"},{"p":"musichub.util","l":"PathValidation"},{"p":"musichub.business","l":"PlayList"},{"p":"musichub.business","l":"Song"},{"p":"musichub.util","l":"XMLHandler"}];updateSearchResults(); \ No newline at end of file diff --git a/target/site/jacoco/index.html b/target/site/jacoco/index.html index f0faf92..b800f3f 100644 --- a/target/site/jacoco/index.html +++ b/target/site/jacoco/index.html @@ -1 +1 @@ -spoteezer

        spoteezer

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

        spoteezer

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

        Sessions

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

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

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

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

        Sessions

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

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

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

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

        PathValidation

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

        PathValidation.java

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

        musichub.business

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

        musichub.business

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

        musichub.business

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

        musichub.business

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

        Main

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

        Main

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

        Main.java

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

        musichub.main

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

        musichub.main

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

        musichub.main

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

        musichub.main

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

        musichub.util

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

        musichub.util

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

        musichub.util

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

        musichub.util

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

        spoteezer

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

        spoteezer

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total2 471 of 2 80311 %206 of 2101 %19021166474573931319
        musichub.business1 8602039 %16542 %16017245449970811215
        musichub.main6050 %410 %30302062063311
        musichub.util12995 %n/a094400903
        \ No newline at end of file diff --git a/target/site/jacoco/jacoco-sessions.html b/target/site/jacoco/jacoco-sessions.html index f1c42c1..cd7b35e 100644 --- a/target/site/jacoco/jacoco-sessions.html +++ b/target/site/jacoco/jacoco-sessions.html @@ -1 +1 @@ -Sessions

        Sessions

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

        SessionStart TimeDump Time
        DESKTOP-M4INQND-636bf65527 juin 2021, 11:17:4727 juin 2021, 11:17:48

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

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

        Sessions

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

        SessionStart TimeDump Time
        DESKTOP-M4INQND-9912560327 juin 2021, 11:53:5427 juin 2021, 11:53:54

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

        ClassId
        java.sql.Dated25610486aed3f31
        java.sql.Timestampb848522074600355
        musichub.business.AudioElement776d9bc5621fe50f
        musichub.business.Genreb2fbdfedce493822
        musichub.business.Song44a87f7f8335b156
        musichub.business.SongTestc0afccba36ce0d13
        musichub.util.LogHandler09990b742e8d897c
        musichub.util.LogHandlerTest49f271871a8ef7bf
        musichub.util.PathValidation538d6ca0ac9478ad
        musichub.util.PathValidationTest46821ddd8d6598d1
        musichub.util.XMLHandlerab2fa919a374fd87
        musichub.util.XMLHandlerTest4852491d32ffd349
        org.apache.maven.plugin.surefire.log.api.NullConsoleLogger80d79e52a7499259
        org.apache.maven.surefire.booter.AbstractPathConfiguration8182fa1396653f01
        org.apache.maven.surefire.booter.BaseProviderFactory82593383b8ea92d6
        org.apache.maven.surefire.booter.BiProperty4945e268841ae2cb
        org.apache.maven.surefire.booter.BooterDeserializer5e68b147d2c4b22f
        org.apache.maven.surefire.booter.ClassLoaderConfigurationdc8fd5c18ebb0e44
        org.apache.maven.surefire.booter.Classpath6f6b6469b9fdf4dd
        org.apache.maven.surefire.booter.ClasspathConfiguration4c7a5282c74ba3e2
        org.apache.maven.surefire.booter.Commandeb1b53eb8cbe7b47
        org.apache.maven.surefire.booter.CommandReader0c8d3ca700ec7199
        org.apache.maven.surefire.booter.CommandReader.1fbfebde20e2b504c
        org.apache.maven.surefire.booter.CommandReader.CommandRunnableee59ae4d74408619
        org.apache.maven.surefire.booter.DumpErrorSingletona3fa02cb87e0e12b
        org.apache.maven.surefire.booter.ForkedBootera5c33895f0d22838
        org.apache.maven.surefire.booter.ForkedBooter.1c87487d278c3ea96
        org.apache.maven.surefire.booter.ForkedBooter.231c66931520df8eb
        org.apache.maven.surefire.booter.ForkedBooter.395d48141fa4dd03d
        org.apache.maven.surefire.booter.ForkedBooter.424dcd1c5bcf0d850
        org.apache.maven.surefire.booter.ForkedBooter.5862846325c16cf76
        org.apache.maven.surefire.booter.ForkedBooter.6b3ab24d3791d84dd
        org.apache.maven.surefire.booter.ForkedBooter.7401437f62a3b16ff
        org.apache.maven.surefire.booter.ForkedBooter.PingScheduler04bf02021dfc5e9c
        org.apache.maven.surefire.booter.ForkingReporterFactory076a6c0176f6238b
        org.apache.maven.surefire.booter.ForkingRunListener92d4b034b32ca2c0
        org.apache.maven.surefire.booter.MasterProcessCommandda65de332c2de19d
        org.apache.maven.surefire.booter.PpidChecker71b8c658da2ea8d3
        org.apache.maven.surefire.booter.PpidChecker.268d262a2c2ad8f14
        org.apache.maven.surefire.booter.PpidChecker.ProcessInfoConsumer73f319c21fab7e7f
        org.apache.maven.surefire.booter.ProcessInfob5b56cd86f3f0b31
        org.apache.maven.surefire.booter.PropertiesWrapperae4bf137cc5290c1
        org.apache.maven.surefire.booter.ProviderConfigurationd19986536a351b50
        org.apache.maven.surefire.booter.Shutdownee9c65017e107986
        org.apache.maven.surefire.booter.StartupConfigurationa8cc10b01ed27439
        org.apache.maven.surefire.booter.SystemPropertyManagerf47497b1dde50d64
        org.apache.maven.surefire.booter.TypeEncodedValue5ea9766678ac06a2
        org.apache.maven.surefire.cli.CommandLineOption467fc7f51b73863b
        org.apache.maven.surefire.junitplatform.JUnitPlatformProvider89b934b90ec6eb01
        org.apache.maven.surefire.junitplatform.RunListenerAdapter02cb8e87a6db2057
        org.apache.maven.surefire.junitplatform.TestPlanScannerFilter622558f718a42827
        org.apache.maven.surefire.providerapi.AbstractProvider90f3b08fe8a1c87c
        org.apache.maven.surefire.report.ConsoleOutputCaptureb8ae904ed8536017
        org.apache.maven.surefire.report.ConsoleOutputCapture.ForwardingPrintStreamf912ea5d2dac308e
        org.apache.maven.surefire.report.ConsoleOutputCapture.NullOutputStream8d05eb67510fd586
        org.apache.maven.surefire.report.ReporterConfiguration4281487891f02f69
        org.apache.maven.surefire.report.SimpleReportEntryced572f24a462295
        org.apache.maven.surefire.shade.org.apache.commons.io.IOUtils31aed2fcfab3e082
        org.apache.maven.surefire.shade.org.apache.commons.io.output.StringBuilderWriter6d33fec8cb3374c0
        org.apache.maven.surefire.shade.org.apache.commons.lang3.JavaVersiona8452005cb20bb7d
        org.apache.maven.surefire.shade.org.apache.commons.lang3.StringUtils4f785afa8bb3a23f
        org.apache.maven.surefire.shade.org.apache.commons.lang3.SystemUtilsaba69a973b7ba06a
        org.apache.maven.surefire.shade.org.apache.commons.lang3.math.NumberUtilsd0156407bff7b695
        org.apache.maven.surefire.shade.org.apache.maven.shared.utils.StringUtils483d14212b21a3ea
        org.apache.maven.surefire.suite.RunResultf5c7c53a954bcafa
        org.apache.maven.surefire.testset.DirectoryScannerParameters2b5eeacae469cd1d
        org.apache.maven.surefire.testset.IncludedExcludedPatternsf39908e3b64d7090
        org.apache.maven.surefire.testset.ResolvedTesta598483e424232d4
        org.apache.maven.surefire.testset.ResolvedTest.ClassMatcher79be7f2fa77ad8d7
        org.apache.maven.surefire.testset.ResolvedTest.MethodMatcher7c71374a51e8e61b
        org.apache.maven.surefire.testset.ResolvedTest.Type90e4214668937845
        org.apache.maven.surefire.testset.RunOrderParametersb4c06223c3099700
        org.apache.maven.surefire.testset.TestArtifactInfof703953620e80b33
        org.apache.maven.surefire.testset.TestListResolver7d372c99b98a147d
        org.apache.maven.surefire.testset.TestRequest0fa2c0cc34345df2
        org.apache.maven.surefire.util.CloseableIteratorcc15bdebae86d5d2
        org.apache.maven.surefire.util.DefaultRunOrderCalculator1aeecbcd3bf6e89b
        org.apache.maven.surefire.util.DefaultScanResult7fefafdf8c793c36
        org.apache.maven.surefire.util.ReflectionUtils8d5f4b05d6d77207
        org.apache.maven.surefire.util.RunOrderd2292a6beb4b6337
        org.apache.maven.surefire.util.TestsToRuna95363e4b4ba2069
        org.apache.maven.surefire.util.TestsToRun.ClassesIterator84a139c598502c0b
        org.apache.maven.surefire.util.internal.DaemonThreadFactory21a589f6dedb169c
        org.apache.maven.surefire.util.internal.DaemonThreadFactory.NamedThreadFactory682458ca85b067a3
        org.apache.maven.surefire.util.internal.DumpFileUtilsfff19f49be3d8149
        org.apache.maven.surefire.util.internal.ImmutableMap72bcae5e55b4fabb
        org.apache.maven.surefire.util.internal.ObjectUtils69a2a92649b44645
        org.apache.maven.surefire.util.internal.StringUtils3a7e4daf0a993e1e
        org.apache.maven.surefire.util.internal.StringUtils.EncodedArray477f1d94d78cb50b
        org.apiguardian.api.API.Status0341e8d99fc36573
        org.junit.jupiter.api.AssertEquals12bfbbf2e4327e63
        org.junit.jupiter.api.AssertFalse32fea5a28fb6a114
        org.junit.jupiter.api.AssertNotEqualsc7953c8abfcb95d0
        org.junit.jupiter.api.AssertTrue612f68f7274dd69c
        org.junit.jupiter.api.AssertionUtilsda37ffd9f98016fd
        org.junit.jupiter.api.Assertions041279bcf2826fff
        org.junit.jupiter.api.TestInstance.Lifecycle0e93858cc703e9fc
        org.junit.jupiter.api.extension.ConditionEvaluationResult2f9dc9ea54b57975
        org.junit.jupiter.api.extension.ExtensionContext222e1fc44c4844aa
        org.junit.jupiter.engine.DiscoveryFilterApplierae96a3ff3c2e2bc4
        org.junit.jupiter.engine.JupiterTestEnginec74f725c8cb223be
        org.junit.jupiter.engine.descriptor.AbstractExtensionContext1f7ed0b87a9f2cca
        org.junit.jupiter.engine.descriptor.ClassExtensionContextb85422abe06bbadd
        org.junit.jupiter.engine.descriptor.ClassTestDescriptor61a635a4acc3ee31
        org.junit.jupiter.engine.descriptor.JupiterEngineDescriptord025635c09450d0d
        org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext7ae853fe3a80d83c
        org.junit.jupiter.engine.descriptor.JupiterTestDescriptor606e5ec97816bda5
        org.junit.jupiter.engine.descriptor.LifecycleMethodUtils19c9fba5accef0fa
        org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor65654838f58d8b44
        org.junit.jupiter.engine.descriptor.MethodExtensionContextc098f6d0bb344d56
        org.junit.jupiter.engine.descriptor.TestInstanceLifecycleUtilsc42bb138e6a06252
        org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor54eb6a19bd953962
        org.junit.jupiter.engine.discovery.AbstractMethodResolver3934f16bf877b9f5
        org.junit.jupiter.engine.discovery.DiscoverySelectorResolvera858789f976fefbc
        org.junit.jupiter.engine.discovery.JavaElementsResolver32e9ea682e77049d
        org.junit.jupiter.engine.discovery.MethodFinder5ea468d2eb528361
        org.junit.jupiter.engine.discovery.NestedTestsResolver9d92451ae793af41
        org.junit.jupiter.engine.discovery.TestContainerResolver7db010f5e9c7301d
        org.junit.jupiter.engine.discovery.TestFactoryMethodResolver59fd27320e375440
        org.junit.jupiter.engine.discovery.TestMethodResolver1417c6356fa4b27f
        org.junit.jupiter.engine.discovery.TestTemplateMethodResolver47563eb55cd35171
        org.junit.jupiter.engine.discovery.predicates.IsInnerClassf7d9846d00228720
        org.junit.jupiter.engine.discovery.predicates.IsNestedTestClasse47ff7cd33073803
        org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer0f8df015b2d5841a
        org.junit.jupiter.engine.discovery.predicates.IsScannableTestClass839db992754219f6
        org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests5ab134cc6ef3a81f
        org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethoda2c68978bd6bfbc6
        org.junit.jupiter.engine.discovery.predicates.IsTestMethod8b244977e441886e
        org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod0baf1066bf0cbad7
        org.junit.jupiter.engine.discovery.predicates.IsTestableMethod59a0b58a40803fe2
        org.junit.jupiter.engine.execution.ConditionEvaluatorfba35d945644501d
        org.junit.jupiter.engine.execution.ExecutableInvokerd64b9ef7a154ea95
        org.junit.jupiter.engine.execution.ExtensionValuesStore2517eb7835ca6234
        org.junit.jupiter.engine.execution.JupiterEngineExecutionContext65be276e3a954a94
        org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builderdd69537274ccbffc
        org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.State38616672a2502408
        org.junit.jupiter.engine.execution.ThrowableCollector92102b13561afdcf
        org.junit.jupiter.engine.extension.DisabledConditiona967493a244329fa
        org.junit.jupiter.engine.extension.ExtensionRegistry20b847fc63fd255b
        org.junit.jupiter.engine.extension.RepeatedTestExtension1b7914cc8cf83732
        org.junit.jupiter.engine.extension.TestInfoParameterResolver1b5b370a56807cae
        org.junit.jupiter.engine.extension.TestReporterParameterResolver839c7c31b3ec6390
        org.junit.platform.commons.logging.LoggerFactoryca4e1a8773fb9bed
        org.junit.platform.commons.logging.LoggerFactory.DelegatingLoggerfd74fe2bb4edddd0
        org.junit.platform.commons.util.AnnotationUtils32499b01efc144e8
        org.junit.platform.commons.util.AnnotationUtils.AnnotationCacheKeyf04082259bc4a6ab
        org.junit.platform.commons.util.ClassLoaderUtilsebded5f4ecebd9d8
        org.junit.platform.commons.util.ClassUtils4982a89773933a90
        org.junit.platform.commons.util.ClasspathScanner8425ab535628f6b9
        org.junit.platform.commons.util.CollectionUtils59532d0e14166bc8
        org.junit.platform.commons.util.Preconditionsf9207dc44e9d043d
        org.junit.platform.commons.util.ReflectionUtils4d39f1033ae8eb12
        org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalModeb267f8ac562d551e
        org.junit.platform.commons.util.StringUtils3441f99393e2406b
        org.junit.platform.engine.CompositeFilterd9d6482243cc9fa3
        org.junit.platform.engine.CompositeFilter.175dffc26c0811b9d
        org.junit.platform.engine.ExecutionRequested3835cc21e5a048
        org.junit.platform.engine.Filterf932423ccd3b54bf
        org.junit.platform.engine.FilterResultbf731bc7f64ce694
        org.junit.platform.engine.TestDescriptore9574ca206cded64
        org.junit.platform.engine.TestDescriptor.Typeeb97fc5a29f3ee3a
        org.junit.platform.engine.TestExecutionResultabbab174d32db912
        org.junit.platform.engine.TestExecutionResult.Statusda0473a55d05e891
        org.junit.platform.engine.UniqueIdd23a178963e86ca7
        org.junit.platform.engine.UniqueId.Segment54a2765f04c8cab7
        org.junit.platform.engine.UniqueIdFormatc860ade4b928ce32
        org.junit.platform.engine.discovery.ClassSelector228aa96d72021db2
        org.junit.platform.engine.discovery.DiscoverySelectors8fefc6f1651cc3bd
        org.junit.platform.engine.support.descriptor.AbstractTestDescriptor2bfbf25c43491443
        org.junit.platform.engine.support.descriptor.ClassSource9727c5551a632c40
        org.junit.platform.engine.support.descriptor.EngineDescriptorb7dbf6dfb794516c
        org.junit.platform.engine.support.descriptor.MethodSource0a1b0f0f95f17b77
        org.junit.platform.engine.support.filter.ClasspathScanningSupport8223a02c2b9d8c89
        org.junit.platform.engine.support.hierarchical.ExecutionTrackercbd37bfd76595d62
        org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine410766a2a07e44b1
        org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor7b43a475463d740e
        org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.1197b854565198af0
        org.junit.platform.engine.support.hierarchical.Node8a5379bd364a5bf6
        org.junit.platform.engine.support.hierarchical.Node.SkipResultd4551dfb7a813206
        org.junit.platform.engine.support.hierarchical.SingleTestExecutord75bd01628eef7be
        org.junit.platform.launcher.TestIdentifier225bb434f8f223e2
        org.junit.platform.launcher.TestPlan9a2b71b572924cbc
        org.junit.platform.launcher.core.DefaultDiscoveryRequest7dda3ad9a0e6a666
        org.junit.platform.launcher.core.DefaultLauncher1a1f88af87dc6ec1
        org.junit.platform.launcher.core.ExecutionListenerAdapter52cf3c3c69d4dfba
        org.junit.platform.launcher.core.LauncherConfigurationParametersef55cacb5e47a902
        org.junit.platform.launcher.core.LauncherDiscoveryRequestBuildere78a71b91c159e69
        org.junit.platform.launcher.core.LauncherFactorye2bd67b8a72737b5
        org.junit.platform.launcher.core.Root32394ca895f9fb9a
        org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry7c054c4cf76cb0f6
        org.junit.platform.launcher.core.ServiceLoaderTestExecutionListenerRegistry2299bac1075a6bf3
        org.junit.platform.launcher.core.TestExecutionListenerRegistry190f4fb2b0ab865d
        org.junit.platform.launcher.core.TestExecutionListenerRegistry.CompositeTestExecutionListener7538d2d860e1f9cb
        org.junit.platform.launcher.listeners.LegacyReportingUtilsf3c021e100a54063
        sun.nio.cs.ext.AbstractCharsetProvider9a72c9e39fdac365
        sun.nio.cs.ext.Big57f7799a4239d3d01
        sun.nio.cs.ext.EUC_CNdaed57327edf3023
        sun.nio.cs.ext.EUC_JPf0c718c92ac0cabc
        sun.nio.cs.ext.EUC_KR3d50c0e84dcd54e6
        sun.nio.cs.ext.EUC_TW4fbeba8ab3b0661e
        sun.nio.cs.ext.ExtendedCharsets7715d4380ab405a8
        sun.nio.cs.ext.IBM037b9b8c9ec2e056149
        sun.nio.cs.ext.IBM1047e368b4c70681ed2e
        sun.nio.cs.ext.IBM2777b5b55809ca60de9
        sun.nio.cs.ext.IBM278326393dad6851723
        sun.nio.cs.ext.IBM2809d9334ffd18e4e40
        sun.nio.cs.ext.IBM28401c4a83f23f1b53d
        sun.nio.cs.ext.IBM285be059d13431c468f
        sun.nio.cs.ext.IBM29709fd5ed2f7ce33cb
        sun.nio.cs.ext.IBM420dfa9e617bd0f689b
        sun.nio.cs.ext.IBM424edd26be1d2ed5a00
        sun.nio.cs.ext.IBM50058b3c90789d546a5
        sun.nio.cs.ext.IBM8604bc938afb837212f
        sun.nio.cs.ext.IBM870ad9dcff6cd8f8661
        sun.nio.cs.ext.IBM871ef144f207fc359f5
        sun.nio.cs.ext.IBM918a83d0db73f26c654
        sun.nio.cs.ext.ISO202292bf931cea04ba69
        sun.nio.cs.ext.ISO2022_JP4839eaacbb85c150
        sun.nio.cs.ext.ISO2022_KRe2e5b9cbb3d44823
        sun.nio.cs.ext.ISO_8859_11cb3ce4182f6717e0
        sun.nio.cs.ext.ISO_8859_3550e89cba9076937
        sun.nio.cs.ext.ISO_8859_67e467e744bd3ad13
        sun.nio.cs.ext.ISO_8859_8bb93af1e031c8697
        sun.nio.cs.ext.MacRoman7007321b9dd9c10d
        sun.text.resources.cldr.ext.FormatData_frcfe4ef8ff7428512
        sun.util.resources.cldr.provider.CLDRLocaleDataMetaInfo888d0e6a76acb845
        sun.util.resources.provider.LocaleDataProvider36ca29d59ab35e5c
        \ No newline at end of file diff --git a/target/site/jacoco/jacoco.csv b/target/site/jacoco/jacoco.csv index f93071b..ffeb027 100644 --- a/target/site/jacoco/jacoco.csv +++ b/target/site/jacoco/jacoco.csv @@ -9,12 +9,12 @@ spoteezer,musichub.business,Language,49,0,0,0,6,0,3,0,3,0 spoteezer,musichub.business,SortByDate,9,0,0,0,2,0,2,0,2,0 spoteezer,musichub.business,MusicHub,803,0,114,0,195,0,79,0,22,0 spoteezer,musichub.business,Category,49,0,0,0,6,0,3,0,3,0 -spoteezer,musichub.business,Song,105,0,6,0,26,0,12,0,7,0 +spoteezer,musichub.business,Song,50,55,4,2,12,14,6,6,2,5 spoteezer,musichub.business,NoPlayListFoundException,4,0,0,0,2,0,1,0,1,0 spoteezer,musichub.business,PlayList,202,0,14,0,53,0,14,0,7,0 spoteezer,musichub.business,AudioBook,164,0,10,0,39,0,17,0,9,0 spoteezer,musichub.business,SortByGenre,9,0,0,0,2,0,2,0,2,0 spoteezer,musichub.business,NoElementFoundException,4,0,0,0,2,0,1,0,1,0 -spoteezer,musichub.business,Genre,56,0,0,0,6,0,3,0,3,0 -spoteezer,musichub.business,AudioElement,266,0,11,0,72,0,16,0,9,0 +spoteezer,musichub.business,Genre,0,56,0,0,0,6,0,3,0,3 +spoteezer,musichub.business,AudioElement,174,92,9,2,47,25,13,3,6,3 spoteezer,musichub.main,Main,605,0,41,0,206,0,30,0,3,0 diff --git a/target/site/jacoco/jacoco.xml b/target/site/jacoco/jacoco.xml index 5ce5b9f..4532c47 100644 --- a/target/site/jacoco/jacoco.xml +++ b/target/site/jacoco/jacoco.xml @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/AudioElement.html b/target/site/jacoco/musichub.business/AudioElement.html index 7a6e499..084f53f 100644 --- a/target/site/jacoco/musichub.business/AudioElement.html +++ b/target/site/jacoco/musichub.business/AudioElement.html @@ -1 +1 @@ -AudioElement

        AudioElement

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

        AudioElement

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

        Genre

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

        Genre

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

        Genre.java

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

        Song

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

        Song

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

        musichub.business

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

        musichub.business

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total1 860 of 2 0639 %165 of 1692 %16017245449970811215
        MusicHub8030 %1140 %7979195195222211
        Album3300 %140 %161684849911
        PlayList2020 %140 %141453537711
        AudioElement1749234 %9218 %131647726901
        AudioBook1640 %100 %171739399911
        Song505552 %4233 %61212262701
        Language490 %n/a33663311
        Category490 %n/a33663311
        SortByAuthor90 %n/a22222211
        SortByDate90 %n/a22222211
        SortByGenre90 %n/a22222211
        NoAlbumFoundException0 %n/a11221111
        NoPlayListFoundException0 %n/a11221111
        NoElementFoundException0 %n/a11221111
        Genre56100 %n/a03060301
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/index.source.html b/target/site/jacoco/musichub.business/index.source.html index 13ddd53..7ceb0fd 100644 --- a/target/site/jacoco/musichub.business/index.source.html +++ b/target/site/jacoco/musichub.business/index.source.html @@ -1 +1 @@ -musichub.business

        musichub.business

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

        musichub.business

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total1 860 of 2 0639 %165 of 1692 %16017245449970811215
        MusicHub.java8300 %1140 %8585201201282844
        Album.java3300 %140 %161684849911
        PlayList.java2020 %140 %141453537711
        AudioElement.java1749234 %9218 %131647726901
        AudioBook.java1640 %100 %171739399911
        Song.java505552 %4233 %61212262701
        Language.java490 %n/a33663311
        Category.java490 %n/a33663311
        NoAlbumFoundException.java0 %n/a11221111
        NoPlayListFoundException.java0 %n/a11221111
        NoElementFoundException.java0 %n/a11221111
        Genre.java56100 %n/a03060301
        \ No newline at end of file -- cgit v1.2.3 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(-) (limited to 'target/site/jacoco/musichub.business') 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 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 (limited to 'target/site/jacoco/musichub.business') 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 From 948ff415cd3571c9f418765b30f1547dd16e84bf Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sun, 27 Jun 2021 18:59:41 +0200 Subject: Latest maven, jacoco and javadoc files --- log/spoteezer.log | 4 +- target/classes/musichub/util/LogHandler.class | Bin 0 -> 2161 bytes target/classes/musichub/util/PathValidation.class | Bin 0 -> 1150 bytes target/jacoco.exec | Bin 15166 -> 30542 bytes .../javadoc-options-javadoc-resources.xml | 10 + target/maven-archiver/pom.properties | 5 + target/maven-javadoc-plugin-stale-data.txt | 66 +++ .../default-testCompile/createdFiles.lst | 6 +- target/original-spoteezer-0.1.0.jar | Bin 0 -> 33454 bytes target/site/jacoco/index.html | 2 +- target/site/jacoco/jacoco-sessions.html | 2 +- target/site/jacoco/jacoco.csv | 6 +- target/site/jacoco/jacoco.xml | 2 +- .../site/jacoco/musichub.business/AudioBook.html | 2 +- .../jacoco/musichub.business/AudioBook.java.html | 24 +- target/site/jacoco/musichub.business/Category.html | 2 +- .../jacoco/musichub.business/Category.java.html | 10 +- target/site/jacoco/musichub.business/Language.html | 2 +- .../jacoco/musichub.business/Language.java.html | 10 +- .../jacoco/musichub.business/MusicHub.java.html | 21 + target/site/jacoco/musichub.business/index.html | 2 +- .../jacoco/musichub.business/index.source.html | 2 +- target/site/jacoco/musichub.main/Main.java.html | 487 +++++++++++---------- .../jacoco/musichub.util/PathValidation.java.html | 8 +- target/spoteezer-0.1.0-shaded.jar | Bin 0 -> 369356 bytes target/spoteezer-0.1.0.jar | Bin 0 -> 369356 bytes .../TEST-musichub.business.CategoryTest.xml | 59 +++ .../TEST-musichub.business.LanguageTest.xml | 67 +-- .../TEST-musichub.business.PlayListTest.xml | 63 +++ .../TEST-musichub.business.SongTest.xml | 64 +++ .../TEST-musichub.util.LogHandlerTest.xml | 61 +++ .../TEST-musichub.util.PathValidationTest.xml | 60 +++ .../TEST-musichub.util.XMLHandlerTest.xml | 60 +++ .../musichub.business.CategoryTest.txt | 4 + .../musichub.business.LanguageTest.txt | 4 + .../musichub.business.PlayListTest.txt | 4 + .../musichub.business.SongTest.txt | 4 + .../musichub.util.LogHandlerTest.txt | 4 + .../musichub.util.PathValidationTest.txt | 4 + .../musichub.util.XMLHandlerTest.txt | 4 + .../musichub/business/CategoryTest.class | Bin 0 -> 1648 bytes .../musichub/business/LanguageTest.class | Bin 0 -> 1649 bytes .../musichub/business/PlayListTest.class | Bin 0 -> 3108 bytes .../test-classes/musichub/business/SongTest.class | Bin 0 -> 3889 bytes .../musichub/util/LogHandlerTest.class | Bin 0 -> 1336 bytes .../musichub/util/PathValidationTest.class | Bin 0 -> 1215 bytes .../musichub/util/XMLHandlerTest.class | Bin 0 -> 1756 bytes 47 files changed, 822 insertions(+), 313 deletions(-) create mode 100644 target/classes/musichub/util/LogHandler.class create mode 100644 target/classes/musichub/util/PathValidation.class create mode 100644 target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml create mode 100644 target/maven-archiver/pom.properties create mode 100644 target/maven-javadoc-plugin-stale-data.txt create mode 100644 target/original-spoteezer-0.1.0.jar create mode 100644 target/spoteezer-0.1.0-shaded.jar create mode 100644 target/spoteezer-0.1.0.jar create mode 100644 target/surefire-reports/TEST-musichub.business.CategoryTest.xml create mode 100644 target/surefire-reports/TEST-musichub.business.PlayListTest.xml create mode 100644 target/surefire-reports/TEST-musichub.business.SongTest.xml create mode 100644 target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml create mode 100644 target/surefire-reports/TEST-musichub.util.PathValidationTest.xml create mode 100644 target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml create mode 100644 target/surefire-reports/musichub.business.CategoryTest.txt create mode 100644 target/surefire-reports/musichub.business.LanguageTest.txt create mode 100644 target/surefire-reports/musichub.business.PlayListTest.txt create mode 100644 target/surefire-reports/musichub.business.SongTest.txt create mode 100644 target/surefire-reports/musichub.util.LogHandlerTest.txt create mode 100644 target/surefire-reports/musichub.util.PathValidationTest.txt create mode 100644 target/surefire-reports/musichub.util.XMLHandlerTest.txt create mode 100644 target/test-classes/musichub/business/CategoryTest.class create mode 100644 target/test-classes/musichub/business/LanguageTest.class create mode 100644 target/test-classes/musichub/business/PlayListTest.class create mode 100644 target/test-classes/musichub/business/SongTest.class create mode 100644 target/test-classes/musichub/util/LogHandlerTest.class create mode 100644 target/test-classes/musichub/util/PathValidationTest.class create mode 100644 target/test-classes/musichub/util/XMLHandlerTest.class (limited to 'target/site/jacoco/musichub.business') diff --git a/log/spoteezer.log b/log/spoteezer.log index b4799c9..7f2fbd4 100644 --- a/log/spoteezer.log +++ b/log/spoteezer.log @@ -1,3 +1,5 @@ [yyyy-MM-dd HH:mm:ss.SSS] TYPE: Message [2021-06-27 13:23:02.181] WARNING: The music file was not found with the path you've provided or the extension is not .wav -[2021-06-27 13:23:40.286] TEST: JUnit test \ No newline at end of file +[2021-06-27 13:23:40.286] TEST: JUnit test +[2021-06-27 17:01:30.263] WARNING: The music file was not found with the path you've provided or the extension is not .wav +[2021-06-27 18:57:02.639] TEST: JUnit test \ No newline at end of file diff --git a/target/classes/musichub/util/LogHandler.class b/target/classes/musichub/util/LogHandler.class new file mode 100644 index 0000000..40507d1 Binary files /dev/null and b/target/classes/musichub/util/LogHandler.class differ diff --git a/target/classes/musichub/util/PathValidation.class b/target/classes/musichub/util/PathValidation.class new file mode 100644 index 0000000..8c0bfc4 Binary files /dev/null and b/target/classes/musichub/util/PathValidation.class differ diff --git a/target/jacoco.exec b/target/jacoco.exec index 029f7db..407278b 100644 Binary files a/target/jacoco.exec and b/target/jacoco.exec differ diff --git a/target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml b/target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml new file mode 100644 index 0000000..8b89c97 --- /dev/null +++ b/target/javadoc-bundle-options/javadoc-options-javadoc-resources.xml @@ -0,0 +1,10 @@ + + + + + + + + + src/main/javadoc + diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000..ea770d4 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Sun Jun 27 13:23:41 CEST 2021 +groupId=esiea.softwareengineering +artifactId=spoteezer +version=0.1.0 diff --git a/target/maven-javadoc-plugin-stale-data.txt b/target/maven-javadoc-plugin-stale-data.txt new file mode 100644 index 0000000..7723699 --- /dev/null +++ b/target/maven-javadoc-plugin-stale-data.txt @@ -0,0 +1,66 @@ +@options +@argfile +-classpath +'C:/Users/SoftA/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.0.2/junit-jupiter-api-5.0.2.jar;C:/Users/SoftA/.m2/repository/org/opentest4j/opentest4j/1.0.0/opentest4j-1.0.0.jar;C:/Users/SoftA/.m2/repository/org/junit/platform/junit-platform-commons/1.0.2/junit-platform-commons-1.0.2.jar;C:/Users/SoftA/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.0.2/junit-jupiter-engine-5.0.2.jar;C:/Users/SoftA/.m2/repository/org/junit/platform/junit-platform-engine/1.0.2/junit-platform-engine-1.0.2.jar' +-encoding +'Cp1252' +-protected +--release +16 +-sourcepath +'C:/Users/SoftA/Documents/spoteezer/src/main/java' +-author +-bottom +'Copyright © 2021. All rights reserved.' +-charset +'UTF-8' +-d +'C:/Users/SoftA/Documents/spoteezer/target/site/apidocs' +-docencoding +'UTF-8' +-doctitle +'spoteezer 0.1.0 API' +-use +-version +-windowtitle +'spoteezer 0.1.0 API' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/Album.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/AudioBook.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/AudioElement.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/Category.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/Genre.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/Language.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/MusicHub.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/NoAlbumFoundException.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/NoElementFoundException.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/NoPlayListFoundException.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/PlayList.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/business/Song.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/main/Main.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/LogHandler.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/PathValidation.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/XMLHandler.java' +C:\Users\SoftA\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.0.2\junit-jupiter-api-5.0.2.jar = 1624015816799 +C:\Users\SoftA\.m2\repository\org\opentest4j\opentest4j\1.0.0\opentest4j-1.0.0.jar = 1624015816785 +C:\Users\SoftA\.m2\repository\org\junit\platform\junit-platform-commons\1.0.2\junit-platform-commons-1.0.2.jar = 1624015816770 +C:\Users\SoftA\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.0.2\junit-jupiter-engine-5.0.2.jar = 1624015816790 +C:\Users\SoftA\.m2\repository\org\junit\platform\junit-platform-engine\1.0.2\junit-platform-engine-1.0.2.jar = 1624015816783 +C:\Users\SoftA\Documents\spoteezer\src\main\java = 1624708123937 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allclasses-index.html = 1624793029572 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allpackages-index.html = 1624793029575 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\element-list = 1624793029464 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\help-doc.html = 1624793029599 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index-all.html = 1624793029596 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index.html = 1624793029553 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\jquery-ui.overrides.css = 1624793029620 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\member-search-index.js = 1624793029579 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\module-search-index.js = 1624793029576 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-summary.html = 1624793029597 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-tree.html = 1624793029548 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\package-search-index.js = 1624793029577 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\script.js = 1624793029602 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\search.js = 1624793029605 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\serialized-form.html = 1624793029489 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\stylesheet.css = 1624793029601 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\tag-search-index.js = 1624793029580 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\type-search-index.js = 1624793029578 \ No newline at end of file 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 7726a1c..1b87d1d 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,5 +1,7 @@ -musichub\util\XMLHandlerTest.class -musichub\business\PlayListTest.class +musichub\business\CategoryTest.class musichub\util\PathValidationTest.class musichub\business\SongTest.class +musichub\business\LanguageTest.class +musichub\util\XMLHandlerTest.class +musichub\business\PlayListTest.class musichub\util\LogHandlerTest.class diff --git a/target/original-spoteezer-0.1.0.jar b/target/original-spoteezer-0.1.0.jar new file mode 100644 index 0000000..49fe805 Binary files /dev/null and b/target/original-spoteezer-0.1.0.jar differ diff --git a/target/site/jacoco/index.html b/target/site/jacoco/index.html index b69ecb5..88d1333 100644 --- a/target/site/jacoco/index.html +++ b/target/site/jacoco/index.html @@ -1 +1 @@ -spoteezer

        spoteezer

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total2 162 of 2 82523 %193 of 2149 %17321359175162931219
        musichub.business1 55151224 %1521710 %14317238149959811115
        musichub.main6050 %410 %30302062063311
        musichub.util15196 %4100 %0114460903
        \ No newline at end of file +spoteezer

        spoteezer

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total2 023 of 2 82528 %191 of 21410 %1642135697515393919
        musichub.business1 41265131 %1501911 %1341723594995081815
        musichub.main6050 %410 %30302062063311
        musichub.util15196 %4100 %0114460903
        \ No newline at end of file diff --git a/target/site/jacoco/jacoco-sessions.html b/target/site/jacoco/jacoco-sessions.html index 9debc99..eb4b943 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-91a7872b27 juin 2021, 13:23:3927 juin 2021, 13:23:40

        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.PlayListTest7e7a002919fb95e1
        musichub.business.Song44a87f7f8335b156
        musichub.business.SongTest88f03b022c5c7270
        musichub.util.LogHandler09990b742e8d897c
        musichub.util.LogHandlerTest49f271871a8ef7bf
        musichub.util.PathValidation170ad3c706c07f6b
        musichub.util.PathValidationTest9eabcd97683d6e01
        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 +Sessions

        Sessions

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

        SessionStart TimeDump Time
        DESKTOP-M4INQND-91a7872b27 juin 2021, 13:23:3927 juin 2021, 13:23:40
        DESKTOP-M4INQND-11e0a09627 juin 2021, 18:57:0227 juin 2021, 18:57:02

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

        ClassId
        java.sql.Dated25610486aed3f31
        java.sql.Timestampb848522074600355
        musichub.business.AudioBookaaa13ef213e0885f
        musichub.business.AudioElement776d9bc5621fe50f
        musichub.business.Categoryf9388aaddff9a152
        musichub.business.CategoryTest8046f4a9dc44152c
        musichub.business.Genreb2fbdfedce493822
        musichub.business.Languaged39e77f1c1a0f641
        musichub.business.LanguageTestf53b266ad5abf5d4
        musichub.business.PlayList5513ec76de07c419
        musichub.business.PlayListTest7e7a002919fb95e1
        musichub.business.Song44a87f7f8335b156
        musichub.business.SongTest88f03b022c5c7270
        musichub.util.LogHandler09990b742e8d897c
        musichub.util.LogHandlerTest49f271871a8ef7bf
        musichub.util.PathValidation170ad3c706c07f6b
        musichub.util.PathValidationTest9eabcd97683d6e01
        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 558423a..9effb4f 100644 --- a/target/site/jacoco/jacoco.csv +++ b/target/site/jacoco/jacoco.csv @@ -5,14 +5,14 @@ spoteezer,musichub.util,XMLHandler,6,66,0,0,4,21,0,4,0,4 spoteezer,musichub.business,Album,330,0,14,0,84,0,16,0,9,0 spoteezer,musichub.business,SortByAuthor,9,0,0,0,2,0,2,0,2,0 spoteezer,musichub.business,NoAlbumFoundException,4,0,0,0,2,0,1,0,1,0 -spoteezer,musichub.business,Language,49,0,0,0,6,0,3,0,3,0 +spoteezer,musichub.business,Language,3,46,0,0,1,5,1,2,1,2 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,Category,3,46,0,0,1,5,1,2,1,2 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,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,AudioBook,117,47,8,2,27,12,12,5,4,5 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 diff --git a/target/site/jacoco/jacoco.xml b/target/site/jacoco/jacoco.xml index 1118bc5..2e1332b 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/AudioBook.html b/target/site/jacoco/musichub.business/AudioBook.html index aec1e56..78809c1 100644 --- a/target/site/jacoco/musichub.business/AudioBook.html +++ b/target/site/jacoco/musichub.business/AudioBook.html @@ -1 +1 @@ -AudioBook

        AudioBook

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total164 of 1640 %10 of 100 %1717393999
        createXMLElement(Document, Element)450 %n/a11101011
        setLanguage(String)290 %50 %557711
        setCategory(String)290 %50 %557711
        AudioBook(Element)200 %n/a114411
        AudioBook(String, String, int, String, String, String, String)140 %n/a114411
        AudioBook(String, String, int, String, String, String)130 %n/a114411
        toString()80 %n/a111111
        getLanguage()30 %n/a111111
        getCategory()30 %n/a111111
        \ No newline at end of file +AudioBook

        AudioBook

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total117 of 16428 %8 of 1020 %1217273949
        createXMLElement(Document, Element)450 %n/a11101011
        AudioBook(Element)200 %n/a114411
        setLanguage(String)151448 %4120 %454701
        setCategory(String)151448 %4120 %454701
        AudioBook(String, String, int, String, String, String, String)140 %n/a114411
        toString()80 %n/a111111
        AudioBook(String, String, int, String, String, String)13100 %n/a010401
        getLanguage()3100 %n/a010101
        getCategory()3100 %n/a010101
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/AudioBook.java.html b/target/site/jacoco/musichub.business/AudioBook.java.html index 33a7924..d8fc192 100644 --- a/target/site/jacoco/musichub.business/AudioBook.java.html +++ b/target/site/jacoco/musichub.business/AudioBook.java.html @@ -14,10 +14,10 @@ public class AudioBook extends AudioElement { } public AudioBook(String title, String artist, int lengthInSeconds, String content, String language, String category) { - super(title, artist, lengthInSeconds, content); - this.setLanguage(language); - this.setCategory(category); - } + super(title, artist, lengthInSeconds, content); + this.setLanguage(language); + this.setCategory(category); + } public AudioBook(Element xmlElement) { super(xmlElement); @@ -26,32 +26,32 @@ public class AudioBook extends AudioElement { } public Language getLanguage() { - return this.language; + return this.language; } public void setLanguage(String language) { - switch (language.toLowerCase()) { + switch (language.toLowerCase()) { default -> this.language = Language.ENGLISH; - case "french" -> this.language = Language.FRENCH; + case "french" -> this.language = Language.FRENCH; case "german" -> this.language = Language.GERMAN; case "spanish" -> this.language = Language.SPANISH; case "italian" -> this.language = Language.ITALIAN; } - } + } public Category getCategory() { - return this.category; + return this.category; } public void setCategory(String category) { - switch (category.toLowerCase()) { + switch (category.toLowerCase()) { default -> this.category = Category.YOUTH; - case "novel" -> this.category = Category.NOVEL; + case "novel" -> this.category = Category.NOVEL; case "theater" -> this.category = Category.THEATER; case "documentary" -> this.category = Category.DOCUMENTARY; case "speech" -> this.category = Category.SPEECH; } - } + } public String toString() { diff --git a/target/site/jacoco/musichub.business/Category.html b/target/site/jacoco/musichub.business/Category.html index d7e4df0..690ad21 100644 --- a/target/site/jacoco/musichub.business/Category.html +++ b/target/site/jacoco/musichub.business/Category.html @@ -1 +1 @@ -Category

        Category

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total49 of 490 %0 of 0n/a336633
        static {...}380 %n/a112211
        Category(String, int, String)80 %n/a113311
        getCategory()30 %n/a111111
        \ No newline at end of file +Category

        Category

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total3 of 4993 %0 of 0n/a131613
        getCategory()30 %n/a111111
        static {...}38100 %n/a010201
        Category(String, int, String)8100 %n/a010301
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Category.java.html b/target/site/jacoco/musichub.business/Category.java.html index cdef51f..1d815b6 100644 --- a/target/site/jacoco/musichub.business/Category.java.html +++ b/target/site/jacoco/musichub.business/Category.java.html @@ -1,12 +1,12 @@ Category.java

        Category.java

        package musichub.business;
         
        -public enum Category {
        -    YOUTH("youth"), NOVEL("novel"), THEATER("theater"), DOCUMENTARY("documentary"), SPEECH("speech");
        +public enum Category {
        +    YOUTH("youth"), NOVEL("novel"), THEATER("theater"), DOCUMENTARY("documentary"), SPEECH("speech");
             private final String category;
         
        -    Category(String category) {
        -        this.category = category;
        -    }
        +    Category(String category) {
        +        this.category = category;
        +    }
         
             public String getCategory() {
                 return category;
        diff --git a/target/site/jacoco/musichub.business/Language.html b/target/site/jacoco/musichub.business/Language.html
        index 604af85..72d4236 100644
        --- a/target/site/jacoco/musichub.business/Language.html
        +++ b/target/site/jacoco/musichub.business/Language.html
        @@ -1 +1 @@
        -Language

        Language

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total49 of 490 %0 of 0n/a336633
        static {...}380 %n/a112211
        Language(String, int, String)80 %n/a113311
        getLanguage()30 %n/a111111
        \ No newline at end of file +Language

        Language

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total3 of 4993 %0 of 0n/a131613
        getLanguage()30 %n/a111111
        static {...}38100 %n/a010201
        Language(String, int, String)8100 %n/a010301
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/Language.java.html b/target/site/jacoco/musichub.business/Language.java.html index f974811..4c55c9d 100644 --- a/target/site/jacoco/musichub.business/Language.java.html +++ b/target/site/jacoco/musichub.business/Language.java.html @@ -1,12 +1,12 @@ Language.java

        Language.java

        package musichub.business;
         
        -public enum Language {
        -    FRENCH("french"), ENGLISH("english"), ITALIAN("italian"), SPANISH("spanish"), GERMAN("german");
        +public enum Language {
        +    FRENCH("french"), ENGLISH("english"), ITALIAN("italian"), SPANISH("spanish"), GERMAN("german");
             private final String language;
         
        -    Language(String language) {
        -        this.language = language;
        -    }
        +    Language(String language) {
        +        this.language = language;
        +    }
         
             public String getLanguage() {
                 return language;
        diff --git a/target/site/jacoco/musichub.business/MusicHub.java.html b/target/site/jacoco/musichub.business/MusicHub.java.html
        index b9dfd09..d150675 100644
        --- a/target/site/jacoco/musichub.business/MusicHub.java.html
        +++ b/target/site/jacoco/musichub.business/MusicHub.java.html
        @@ -339,5 +339,26 @@ public class MusicHub {
                 }
         
             }
        +
        +    public void searchAudioElement() throws UnsupportedAudioFileException, NoAlbumFoundException, LineUnavailableException, IOException {
        +        Scanner scanner = new Scanner(System.in);
        +        System.out.println("Entrez le titre ou l'artiste de la musique que vous souhaitez chercher dans la base de données");
        +        String word = scanner.next().toLowerCase(Locale.ROOT);
        +        List<AudioElement> searchResult = new ArrayList<>();
        +        for(AudioElement el : elements){
        +            if(el.getTitle().toLowerCase(Locale.ROOT).contains(word) || el.getArtist().toLowerCase(Locale.ROOT).contains(word)){
        +                searchResult.add(el);
        +                System.out.println(el);
        +            }
        +        }
        +
        +        if(searchResult.isEmpty()){
        +            System.err.println("Aucun résultat pour votre recherche");
        +        }
        +        if (searchResult.size()==1){
        +            this.getAudioElement(searchResult, searchResult.get(0).getTitle());
        +        }
        +    }
        +
         }
         
        \ 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 3178b04..359d516 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 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 +musichub.business

        musichub.business

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total1 412 of 2 06331 %150 of 16911 %1341723594995081815
        MusicHub8030 %1140 %7979195195222211
        Album3300 %140 %161684849911
        AudioBook1174728 %8220 %121727394901
        AudioElement8518168 %9218 %111630724901
        PlayList3217084 %5964 %5149530701
        SortByAuthor90 %n/a22222211
        SortByDate90 %n/a22222211
        SortByGenre90 %n/a22222211
        NoAlbumFoundException0 %n/a11221111
        NoPlayListFoundException0 %n/a11221111
        NoElementFoundException0 %n/a11221111
        Language4693 %n/a13161301
        Category4693 %n/a13161301
        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 967ff25..21f0bb6 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 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 +musichub.business

        musichub.business

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total1 412 of 2 06331 %150 of 16911 %1341723594995081815
        MusicHub.java8300 %1140 %8585201201282844
        Album.java3300 %140 %161684849911
        AudioBook.java1174728 %8220 %121727394901
        AudioElement.java8518168 %9218 %111630724901
        PlayList.java3217084 %5964 %5149530701
        NoAlbumFoundException.java0 %n/a11221111
        NoPlayListFoundException.java0 %n/a11221111
        NoElementFoundException.java0 %n/a11221111
        Language.java4693 %n/a13161301
        Category.java4693 %n/a13161301
        Song.java105100 %6100 %0120260701
        Genre.java56100 %n/a03060301
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.main/Main.java.html b/target/site/jacoco/musichub.main/Main.java.html index d86f303..bee2491 100644 --- a/target/site/jacoco/musichub.main/Main.java.html +++ b/target/site/jacoco/musichub.main/Main.java.html @@ -13,264 +13,271 @@ import java.util.Scanner; import static musichub.util.PathValidation.isPathValid; public class Main { - public static void main(String[] args) throws UnsupportedAudioFileException, IOException, LineUnavailableException { + public static void main(String[] args) throws UnsupportedAudioFileException, IOException, LineUnavailableException, NoAlbumFoundException { - MusicHub theHub = new MusicHub(); + + MusicHub theHub = new MusicHub(); + + System.out.println("Type h for available commands"); - System.out.println("Type h for available commands"); - - - Scanner scan = new Scanner(System.in); - String choice = scan.nextLine(); + + Scanner scan = new Scanner(System.in); + String choice = scan.nextLine(); String albumTitle; - - if (choice.length() == 0) System.exit(0); - - while (!choice.equals("")) { //if the user puts nothing, quit the loop/system - switch (choice.charAt(0)) { - case 'q': //added the option directly in the switch instead of the loop - System.exit(0); - case 'h': - printAvailableCommands(); - choice = scan.nextLine(); - break; + + if (choice.length() == 0) System.exit(0); + + while (!choice.equals("")) { //if the user puts nothing, quit the loop/system + switch (choice.charAt(0)) { + case 'q': //added the option directly in the switch instead of the loop + System.exit(0); + case 'h': + printAvailableCommands(); + choice = scan.nextLine(); + break; case 't': - //album titles, ordered by date - System.out.println(theHub.getAlbumsTitlesSortedByDate()); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //album titles, ordered by date + System.out.println(theHub.getAlbumsTitlesSortedByDate()); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'g': - //songs of an album, sorted by genre - System.out.println("Songs of an album sorted by genre will be displayed; enter the album name, available albums are:"); - System.out.println(theHub.getAlbumsTitlesSortedByDate()); - - albumTitle = scan.nextLine(); - try { - List<Song> songs = theHub.getAlbumSongsSortedByGenre(albumTitle); - System.out.println(songs); - } catch (NoAlbumFoundException ex) { - System.out.println("No album found with the requested title " + ex.getMessage()); - } - printAvailableCommands(); - choice = scan.nextLine(); - break; + //songs of an album, sorted by genre + System.out.println("Songs of an album sorted by genre will be displayed; enter the album name, available albums are:"); + System.out.println(theHub.getAlbumsTitlesSortedByDate()); + + albumTitle = scan.nextLine(); + try { + List<Song> songs = theHub.getAlbumSongsSortedByGenre(albumTitle); + System.out.println(songs); + } catch (NoAlbumFoundException ex) { + System.out.println("No album found with the requested title " + ex.getMessage()); + } + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'd': - //songs of an album - System.out.println("Songs of an album will be displayed; enter the album name, available albums are:"); - System.out.println(theHub.getAlbumsTitlesSortedByDate()); - - albumTitle = scan.nextLine(); - try { - List<AudioElement> songs = theHub.getAlbumSongs(albumTitle); - System.out.println(theHub.getAlbumSongs(albumTitle)); - String song = scan.nextLine(); - theHub.getAudioElement(songs, song); - } catch (NoAlbumFoundException ex) { - System.out.println("No album found with the requested title " + ex.getMessage()); - } - printAvailableCommands(); - choice = scan.nextLine(); - break; + //songs of an album + System.out.println("Songs of an album will be displayed; enter the album name, available albums are:"); + System.out.println(theHub.getAlbumsTitlesSortedByDate()); + + albumTitle = scan.nextLine(); + try { + List<AudioElement> songs = theHub.getAlbumSongs(albumTitle); + System.out.println(theHub.getAlbumSongs(albumTitle)); + String song = scan.nextLine(); + theHub.getAudioElement(songs, song); + } catch (NoAlbumFoundException ex) { + System.out.println("No album found with the requested title " + ex.getMessage()); + } + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'u': - //audiobooks ordered by author - System.out.println(theHub.getAudiobooksTitlesSortedByAuthor()); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //audiobooks ordered by author + System.out.println(theHub.getAudiobooksTitlesSortedByAuthor()); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'c': - // add a new song - System.out.println("Enter a new song: "); - System.out.println("Song title: "); - String title = scan.nextLine(); - System.out.println("Song genre (jazz, classic, hiphop, rock, pop, rap):"); - String genre = scan.nextLine(); - System.out.println("Song artist: "); - String artist = scan.nextLine(); - System.out.println("Song length in seconds: "); - int length = Integer.parseInt(scan.nextLine()); - - System.out.println("Song content: "); - String content = scan.nextLine(); - if (!isPathValid(content)) { - String logMsg = "The music file was not found with the path you've provided or the extension is not .wav"; - LogHandler.write(logMsg, "WARNING"); //write a line in the log file - System.out.println(logMsg + "\nType h for available commands"); - choice = scan.nextLine(); - break; + // add a new song + System.out.println("Enter a new song: "); + System.out.println("Song title: "); + String title = scan.nextLine(); + System.out.println("Song genre (jazz, classic, hiphop, rock, pop, rap):"); + String genre = scan.nextLine(); + System.out.println("Song artist: "); + String artist = scan.nextLine(); + System.out.println("Song length in seconds: "); + int length = Integer.parseInt(scan.nextLine()); + + System.out.println("Song content: "); + String content = scan.nextLine(); + if (!isPathValid(content)) { + String logMsg = "The music file was not found with the path you've provided or the extension is not .wav"; + LogHandler.write(logMsg, "WARNING"); //write a line in the log file + System.out.println(logMsg + "\nType h for available commands"); + choice = scan.nextLine(); + break; } - - Song s = new Song(title, artist, length, content, genre); - theHub.addElement(s); - System.out.println("New element list: "); - Iterator<AudioElement> it = theHub.elements(); - while (it.hasNext()) System.out.println(it.next().getTitle()); - System.out.println("Song created!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + + Song s = new Song(title, artist, length, content, genre); + theHub.addElement(s); + System.out.println("New element list: "); + Iterator<AudioElement> it = theHub.elements(); + while (it.hasNext()) System.out.println(it.next().getTitle()); + System.out.println("Song created!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'a': - // add a new album - System.out.println("Enter a new album: "); - System.out.println("Album title: "); - String aTitle = scan.nextLine(); - System.out.println("Album artist: "); - String aArtist = scan.nextLine(); - System.out.println("Album length in seconds: "); - int aLength = Integer.parseInt(scan.nextLine()); - System.out.println("Album date as YYYY-DD-MM: "); - String aDate = scan.nextLine(); - Album a = new Album(aTitle, aArtist, aLength, aDate); - theHub.addAlbum(a); - System.out.println("New list of albums: "); - Iterator<Album> ita = theHub.albums(); - while (ita.hasNext()) System.out.println(ita.next().getTitle()); - System.out.println("Album created!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + // add a new album + System.out.println("Enter a new album: "); + System.out.println("Album title: "); + String aTitle = scan.nextLine(); + System.out.println("Album artist: "); + String aArtist = scan.nextLine(); + System.out.println("Album length in seconds: "); + int aLength = Integer.parseInt(scan.nextLine()); + System.out.println("Album date as YYYY-DD-MM: "); + String aDate = scan.nextLine(); + Album a = new Album(aTitle, aArtist, aLength, aDate); + theHub.addAlbum(a); + System.out.println("New list of albums: "); + Iterator<Album> ita = theHub.albums(); + while (ita.hasNext()) System.out.println(ita.next().getTitle()); + System.out.println("Album created!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case '+': - //add a song to an album: - System.out.println("Add an existing song to an existing album"); - System.out.println("Type the name of the song you wish to add. Available songs: "); - Iterator<AudioElement> itae = theHub.elements(); - while (itae.hasNext()) { - AudioElement ae = itae.next(); - if (ae instanceof Song) System.out.println(ae.getTitle()); - } - String songTitle = scan.nextLine(); - - System.out.println("Type the name of the album you wish to enrich. Available albums: "); - Iterator<Album> ait = theHub.albums(); - while (ait.hasNext()) { - Album al = ait.next(); - System.out.println(al.getTitle()); - } - String titleAlbum = scan.nextLine(); - try { - theHub.addElementToAlbum(songTitle, titleAlbum); - } catch (NoAlbumFoundException | NoElementFoundException ex) { - System.out.println(ex.getMessage()); - } - System.out.println("Song added to the album!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //add a song to an album: + System.out.println("Add an existing song to an existing album"); + System.out.println("Type the name of the song you wish to add. Available songs: "); + Iterator<AudioElement> itae = theHub.elements(); + while (itae.hasNext()) { + AudioElement ae = itae.next(); + if (ae instanceof Song) System.out.println(ae.getTitle()); + } + String songTitle = scan.nextLine(); + + System.out.println("Type the name of the album you wish to enrich. Available albums: "); + Iterator<Album> ait = theHub.albums(); + while (ait.hasNext()) { + Album al = ait.next(); + System.out.println(al.getTitle()); + } + String titleAlbum = scan.nextLine(); + try { + theHub.addElementToAlbum(songTitle, titleAlbum); + } catch (NoAlbumFoundException | NoElementFoundException ex) { + System.out.println(ex.getMessage()); + } + System.out.println("Song added to the album!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'l': - // add a new audiobook - System.out.println("Enter a new audiobook: "); - System.out.println("AudioBook title: "); - String bTitle = scan.nextLine(); - System.out.println("AudioBook category (youth, novel, theater, documentary, speech)"); - String bCategory = scan.nextLine(); - System.out.println("AudioBook artist: "); - String bArtist = scan.nextLine(); - System.out.println("AudioBook length in seconds: "); - int bLength = Integer.parseInt(scan.nextLine()); - System.out.println("AudioBook content: "); - String bContent = scan.nextLine(); - System.out.println("AudioBook language (french, english, italian, spanish, german)"); - String bLanguage = scan.nextLine(); - AudioBook b = new AudioBook(bTitle, bArtist, bLength, bContent, bLanguage, bCategory); - theHub.addElement(b); - System.out.println("Audiobook created! New element list: "); - Iterator<AudioElement> itl = theHub.elements(); - while (itl.hasNext()) System.out.println(itl.next().getTitle()); - printAvailableCommands(); - choice = scan.nextLine(); - break; + // add a new audiobook + System.out.println("Enter a new audiobook: "); + System.out.println("AudioBook title: "); + String bTitle = scan.nextLine(); + System.out.println("AudioBook category (youth, novel, theater, documentary, speech)"); + String bCategory = scan.nextLine(); + System.out.println("AudioBook artist: "); + String bArtist = scan.nextLine(); + System.out.println("AudioBook length in seconds: "); + int bLength = Integer.parseInt(scan.nextLine()); + System.out.println("AudioBook content: "); + String bContent = scan.nextLine(); + System.out.println("AudioBook language (french, english, italian, spanish, german)"); + String bLanguage = scan.nextLine(); + AudioBook b = new AudioBook(bTitle, bArtist, bLength, bContent, bLanguage, bCategory); + theHub.addElement(b); + System.out.println("Audiobook created! New element list: "); + Iterator<AudioElement> itl = theHub.elements(); + while (itl.hasNext()) System.out.println(itl.next().getTitle()); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'p': - //create a new playlist from existing elements - System.out.println("Add an existing song or audiobook to a new playlist"); - System.out.println("Existing playlists:"); - Iterator<PlayList> itpl = theHub.playlists(); - while (itpl.hasNext()) { - PlayList pl = itpl.next(); - System.out.println(pl.getTitle()); - } - System.out.println("Type the name of the playlist you wish to create:"); - String playListTitle = scan.nextLine(); - PlayList pl = new PlayList(playListTitle); - theHub.addPlaylist(pl); - System.out.println("Available elements: "); - - Iterator<AudioElement> itael = theHub.elements(); - while (itael.hasNext()) { - AudioElement ae = itael.next(); - System.out.println(ae.getTitle()); - } - while (choice.charAt(0) != 'n') { - System.out.println("Type the name of the audio element you wish to add or 'n' to exit:"); - String elementTitle = scan.nextLine(); - try { - theHub.addElementToPlayList(elementTitle, playListTitle); - } catch (NoPlayListFoundException | NoElementFoundException ex) { - System.out.println(ex.getMessage()); - } - - System.out.println("Type y to add a new one, n to end"); - choice = scan.nextLine(); - } - System.out.println("Playlist created!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //create a new playlist from existing elements + System.out.println("Add an existing song or audiobook to a new playlist"); + System.out.println("Existing playlists:"); + Iterator<PlayList> itpl = theHub.playlists(); + while (itpl.hasNext()) { + PlayList pl = itpl.next(); + System.out.println(pl.getTitle()); + } + System.out.println("Type the name of the playlist you wish to create:"); + String playListTitle = scan.nextLine(); + PlayList pl = new PlayList(playListTitle); + theHub.addPlaylist(pl); + System.out.println("Available elements: "); + + Iterator<AudioElement> itael = theHub.elements(); + while (itael.hasNext()) { + AudioElement ae = itael.next(); + System.out.println(ae.getTitle()); + } + while (choice.charAt(0) != 'n') { + System.out.println("Type the name of the audio element you wish to add or 'n' to exit:"); + String elementTitle = scan.nextLine(); + try { + theHub.addElementToPlayList(elementTitle, playListTitle); + } catch (NoPlayListFoundException | NoElementFoundException ex) { + System.out.println(ex.getMessage()); + } + + System.out.println("Type y to add a new one, n to end"); + choice = scan.nextLine(); + } + System.out.println("Playlist created!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case '-': - //delete a playlist - System.out.println("Delete an existing playlist. Available playlists:"); - Iterator<PlayList> itp = theHub.playlists(); - while (itp.hasNext()) { - PlayList p = itp.next(); - System.out.println(p.getTitle()); - } - String plTitle = scan.nextLine(); - try { - theHub.deletePlayList(plTitle); - } catch (NoPlayListFoundException ex) { - System.out.println(ex.getMessage()); - } - System.out.println("Playlist deleted!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //delete a playlist + System.out.println("Delete an existing playlist. Available playlists:"); + Iterator<PlayList> itp = theHub.playlists(); + while (itp.hasNext()) { + PlayList p = itp.next(); + System.out.println(p.getTitle()); + } + String plTitle = scan.nextLine(); + try { + theHub.deletePlayList(plTitle); + } catch (NoPlayListFoundException ex) { + System.out.println(ex.getMessage()); + } + System.out.println("Playlist deleted!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 's': - //save elements, albums, playlists - theHub.saveElements(); - theHub.saveAlbums(); - theHub.savePlayLists(); - System.out.println("Elements, albums and playlists saved!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; - case 'o': + //save elements, albums, playlists + theHub.saveElements(); + theHub.saveAlbums(); + theHub.savePlayLists(); + System.out.println("Elements, albums and playlists saved!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; + case 'r': + //search a music + theHub.searchAudioElement(); + printAvailableCommands(); + case 'o': //consult the app logs - LogHandler.read(); - System.out.println("Type h for available commands"); - choice = scan.nextLine(); - break; - default: - - break; + LogHandler.read(); + System.out.println("Type h for available commands"); + choice = scan.nextLine(); + break; + default: + + break; } - } - scan.close(); - } + } + scan.close(); + } + + private static void printAvailableCommands() { + System.out.println("t: display the album titles, ordered by date"); + System.out.println("g: display songs of an album, ordered by genre"); + System.out.println("d: display songs of an album"); + System.out.println("u: display audiobooks ordered by author"); + System.out.println("r: search audio elements"); + System.out.println("c: add a new song"); + System.out.println("a: add a new album"); + System.out.println("+: add a song to an album"); + System.out.println("l: add a new audiobook"); + System.out.println("p: create a new playlist from existing songs and audio books"); + System.out.println("-: delete an existing playlist"); + System.out.println("s: save elements, albums, playlists"); + System.out.println("o: consult the app logs"); + System.out.println("q: quit program"); + } - private static void printAvailableCommands() { - System.out.println("t: display the album titles, ordered by date"); - System.out.println("g: display songs of an album, ordered by genre"); - System.out.println("d: display songs of an album"); - System.out.println("u: display audiobooks ordered by author"); - System.out.println("c: add a new song"); - System.out.println("a: add a new album"); - System.out.println("+: add a song to an album"); - System.out.println("l: add a new audiobook"); - System.out.println("p: create a new playlist from existing songs and audio books"); - System.out.println("-: delete an existing playlist"); - System.out.println("s: save elements, albums, playlists"); - System.out.println("o: consult the app logs"); - System.out.println("q: quit program"); - } }
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.util/PathValidation.java.html b/target/site/jacoco/musichub.util/PathValidation.java.html index 7518e59..c7a0f92 100644 --- a/target/site/jacoco/musichub.util/PathValidation.java.html +++ b/target/site/jacoco/musichub.util/PathValidation.java.html @@ -32,13 +32,13 @@ public final class PathValidation { */ public static boolean isPathValid(String inputPath) { - boolean isExtensionValid=false; + boolean isExtensionValid = false; int index = inputPath.lastIndexOf('.'); - if(index > 0) { + if (index > 0) { String extension = inputPath.substring(index + 1); - if (extension.equals("wav")){ - isExtensionValid=true; + if (extension.equals("wav")) { + isExtensionValid = true; } } diff --git a/target/spoteezer-0.1.0-shaded.jar b/target/spoteezer-0.1.0-shaded.jar new file mode 100644 index 0000000..eb07fdf Binary files /dev/null and b/target/spoteezer-0.1.0-shaded.jar differ diff --git a/target/spoteezer-0.1.0.jar b/target/spoteezer-0.1.0.jar new file mode 100644 index 0000000..eb07fdf Binary files /dev/null and b/target/spoteezer-0.1.0.jar differ diff --git a/target/surefire-reports/TEST-musichub.business.CategoryTest.xml b/target/surefire-reports/TEST-musichub.business.CategoryTest.xml new file mode 100644 index 0000000..8ce59e6 --- /dev/null +++ b/target/surefire-reports/TEST-musichub.business.CategoryTest.xml @@ -0,0 +1,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.business.LanguageTest.xml b/target/surefire-reports/TEST-musichub.business.LanguageTest.xml index 088ebdd..c41bab0 100644 --- a/target/surefire-reports/TEST-musichub.business.LanguageTest.xml +++ b/target/surefire-reports/TEST-musichub.business.LanguageTest.xml @@ -1,57 +1,58 @@ - + - - - + + + + - - + + + + - - - + + - + - + - - - + + + - - + + + - - - - - + + + + - + - - - - + + + - - + + - + + - - - - + + + diff --git a/target/surefire-reports/TEST-musichub.business.PlayListTest.xml b/target/surefire-reports/TEST-musichub.business.PlayListTest.xml new file mode 100644 index 0000000..3bf4556 --- /dev/null +++ b/target/surefire-reports/TEST-musichub.business.PlayListTest.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.business.SongTest.xml b/target/surefire-reports/TEST-musichub.business.SongTest.xml new file mode 100644 index 0000000..83aee37 --- /dev/null +++ b/target/surefire-reports/TEST-musichub.business.SongTest.xml @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml b/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml new file mode 100644 index 0000000..754079a --- /dev/null +++ b/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml b/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml new file mode 100644 index 0000000..8f4f524 --- /dev/null +++ b/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml b/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml new file mode 100644 index 0000000..72a1c5b --- /dev/null +++ b/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/target/surefire-reports/musichub.business.CategoryTest.txt b/target/surefire-reports/musichub.business.CategoryTest.txt new file mode 100644 index 0000000..b3656ab --- /dev/null +++ b/target/surefire-reports/musichub.business.CategoryTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: musichub.business.CategoryTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 s - in musichub.business.CategoryTest diff --git a/target/surefire-reports/musichub.business.LanguageTest.txt b/target/surefire-reports/musichub.business.LanguageTest.txt new file mode 100644 index 0000000..7fd1a58 --- /dev/null +++ b/target/surefire-reports/musichub.business.LanguageTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: musichub.business.LanguageTest +------------------------------------------------------------------------------- +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in musichub.business.LanguageTest diff --git a/target/surefire-reports/musichub.business.PlayListTest.txt b/target/surefire-reports/musichub.business.PlayListTest.txt new file mode 100644 index 0000000..7109820 --- /dev/null +++ b/target/surefire-reports/musichub.business.PlayListTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: musichub.business.PlayListTest +------------------------------------------------------------------------------- +Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 s - in musichub.business.PlayListTest diff --git a/target/surefire-reports/musichub.business.SongTest.txt b/target/surefire-reports/musichub.business.SongTest.txt new file mode 100644 index 0000000..1b93b96 --- /dev/null +++ b/target/surefire-reports/musichub.business.SongTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: musichub.business.SongTest +------------------------------------------------------------------------------- +Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 s - in musichub.business.SongTest diff --git a/target/surefire-reports/musichub.util.LogHandlerTest.txt b/target/surefire-reports/musichub.util.LogHandlerTest.txt new file mode 100644 index 0000000..14d9938 --- /dev/null +++ b/target/surefire-reports/musichub.util.LogHandlerTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: musichub.util.LogHandlerTest +------------------------------------------------------------------------------- +Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 s - in musichub.util.LogHandlerTest diff --git a/target/surefire-reports/musichub.util.PathValidationTest.txt b/target/surefire-reports/musichub.util.PathValidationTest.txt new file mode 100644 index 0000000..39ffd40 --- /dev/null +++ b/target/surefire-reports/musichub.util.PathValidationTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: musichub.util.PathValidationTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in musichub.util.PathValidationTest diff --git a/target/surefire-reports/musichub.util.XMLHandlerTest.txt b/target/surefire-reports/musichub.util.XMLHandlerTest.txt new file mode 100644 index 0000000..71a2254 --- /dev/null +++ b/target/surefire-reports/musichub.util.XMLHandlerTest.txt @@ -0,0 +1,4 @@ +------------------------------------------------------------------------------- +Test set: musichub.util.XMLHandlerTest +------------------------------------------------------------------------------- +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.127 s - in musichub.util.XMLHandlerTest diff --git a/target/test-classes/musichub/business/CategoryTest.class b/target/test-classes/musichub/business/CategoryTest.class new file mode 100644 index 0000000..df89247 Binary files /dev/null and b/target/test-classes/musichub/business/CategoryTest.class differ diff --git a/target/test-classes/musichub/business/LanguageTest.class b/target/test-classes/musichub/business/LanguageTest.class new file mode 100644 index 0000000..c340860 Binary files /dev/null and b/target/test-classes/musichub/business/LanguageTest.class differ diff --git a/target/test-classes/musichub/business/PlayListTest.class b/target/test-classes/musichub/business/PlayListTest.class new file mode 100644 index 0000000..8a57bea Binary files /dev/null and b/target/test-classes/musichub/business/PlayListTest.class differ diff --git a/target/test-classes/musichub/business/SongTest.class b/target/test-classes/musichub/business/SongTest.class new file mode 100644 index 0000000..a2c161f Binary files /dev/null and b/target/test-classes/musichub/business/SongTest.class differ diff --git a/target/test-classes/musichub/util/LogHandlerTest.class b/target/test-classes/musichub/util/LogHandlerTest.class new file mode 100644 index 0000000..fc51cb6 Binary files /dev/null and b/target/test-classes/musichub/util/LogHandlerTest.class differ diff --git a/target/test-classes/musichub/util/PathValidationTest.class b/target/test-classes/musichub/util/PathValidationTest.class new file mode 100644 index 0000000..4e4eb83 Binary files /dev/null and b/target/test-classes/musichub/util/PathValidationTest.class differ diff --git a/target/test-classes/musichub/util/XMLHandlerTest.class b/target/test-classes/musichub/util/XMLHandlerTest.class new file mode 100644 index 0000000..f7994d8 Binary files /dev/null and b/target/test-classes/musichub/util/XMLHandlerTest.class differ -- cgit v1.2.3 From 2b45d7bea0d7cb1031b3cdac54e676c183b8074e Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sun, 27 Jun 2021 22:23:57 +0200 Subject: mvn package --- log/spoteezer.log | 3 +- target/classes/musichub/business/MusicHub.class | Bin 12505 -> 12507 bytes target/classes/musichub/main/Main.class | Bin 10771 -> 10828 bytes target/jacoco.exec | Bin 30542 -> 45918 bytes target/original-spoteezer-0.1.0.jar | Bin 33454 -> 39074 bytes target/site/jacoco/index.html | 2 +- target/site/jacoco/jacoco-sessions.html | 2 +- target/site/jacoco/jacoco.csv | 5 +- target/site/jacoco/jacoco.xml | 2 +- .../jacoco/musichub.business/MusicHub.java.html | 30 +- target/site/jacoco/musichub.business/index.html | 2 +- .../jacoco/musichub.business/index.source.html | 2 +- target/site/jacoco/musichub.main/Main.java.html | 502 +++++++++++---------- target/spoteezer-0.1.0-shaded.jar | Bin 369356 -> 374992 bytes target/spoteezer-0.1.0.jar | Bin 369356 -> 374992 bytes .../TEST-musichub.business.CategoryTest.xml | 8 +- .../TEST-musichub.business.LanguageTest.xml | 4 +- .../TEST-musichub.business.PlayListTest.xml | 10 +- .../TEST-musichub.business.SongTest.xml | 14 +- .../TEST-musichub.util.LogHandlerTest.xml | 8 +- .../TEST-musichub.util.PathValidationTest.xml | 4 +- .../TEST-musichub.util.XMLHandlerTest.xml | 8 +- .../musichub.business.CategoryTest.txt | 2 +- .../musichub.business.PlayListTest.txt | 2 +- .../musichub.business.SongTest.txt | 2 +- .../musichub.util.XMLHandlerTest.txt | 2 +- 26 files changed, 313 insertions(+), 301 deletions(-) (limited to 'target/site/jacoco/musichub.business') diff --git a/log/spoteezer.log b/log/spoteezer.log index 7f2fbd4..5251bff 100644 --- a/log/spoteezer.log +++ b/log/spoteezer.log @@ -2,4 +2,5 @@ [2021-06-27 13:23:02.181] WARNING: The music file was not found with the path you've provided or the extension is not .wav [2021-06-27 13:23:40.286] TEST: JUnit test [2021-06-27 17:01:30.263] WARNING: The music file was not found with the path you've provided or the extension is not .wav -[2021-06-27 18:57:02.639] TEST: JUnit test \ No newline at end of file +[2021-06-27 18:57:02.639] TEST: JUnit test +[2021-06-27 22:23:27.617] TEST: JUnit test \ No newline at end of file diff --git a/target/classes/musichub/business/MusicHub.class b/target/classes/musichub/business/MusicHub.class index 41af154..8614d25 100644 Binary files a/target/classes/musichub/business/MusicHub.class and b/target/classes/musichub/business/MusicHub.class differ diff --git a/target/classes/musichub/main/Main.class b/target/classes/musichub/main/Main.class index 802184b..6a37d2d 100644 Binary files a/target/classes/musichub/main/Main.class and b/target/classes/musichub/main/Main.class differ diff --git a/target/jacoco.exec b/target/jacoco.exec index 407278b..c71133e 100644 Binary files a/target/jacoco.exec and b/target/jacoco.exec differ diff --git a/target/original-spoteezer-0.1.0.jar b/target/original-spoteezer-0.1.0.jar index 49fe805..dee388f 100644 Binary files a/target/original-spoteezer-0.1.0.jar and b/target/original-spoteezer-0.1.0.jar differ diff --git a/target/site/jacoco/index.html b/target/site/jacoco/index.html index 88d1333..b7992f7 100644 --- a/target/site/jacoco/index.html +++ b/target/site/jacoco/index.html @@ -1 +1 @@ -spoteezer

        spoteezer

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total2 023 of 2 82528 %191 of 21410 %1642135697515393919
        musichub.business1 41265131 %1501911 %1341723594995081815
        musichub.main6050 %410 %30302062063311
        musichub.util15196 %4100 %0114460903
        \ No newline at end of file +spoteezer

        spoteezer

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total2 167 of 2 96927 %207 of 23010 %17722661279457971020
        musichub.business1 48365130 %1601910 %1401783735135182815
        musichub.main6250 %420 %31312152153311
        musichub.util5915171 %5444 %617246631214
        \ No newline at end of file diff --git a/target/site/jacoco/jacoco-sessions.html b/target/site/jacoco/jacoco-sessions.html index eb4b943..59fcb45 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-91a7872b27 juin 2021, 13:23:3927 juin 2021, 13:23:40
        DESKTOP-M4INQND-11e0a09627 juin 2021, 18:57:0227 juin 2021, 18:57:02

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

        ClassId
        java.sql.Dated25610486aed3f31
        java.sql.Timestampb848522074600355
        musichub.business.AudioBookaaa13ef213e0885f
        musichub.business.AudioElement776d9bc5621fe50f
        musichub.business.Categoryf9388aaddff9a152
        musichub.business.CategoryTest8046f4a9dc44152c
        musichub.business.Genreb2fbdfedce493822
        musichub.business.Languaged39e77f1c1a0f641
        musichub.business.LanguageTestf53b266ad5abf5d4
        musichub.business.PlayList5513ec76de07c419
        musichub.business.PlayListTest7e7a002919fb95e1
        musichub.business.Song44a87f7f8335b156
        musichub.business.SongTest88f03b022c5c7270
        musichub.util.LogHandler09990b742e8d897c
        musichub.util.LogHandlerTest49f271871a8ef7bf
        musichub.util.PathValidation170ad3c706c07f6b
        musichub.util.PathValidationTest9eabcd97683d6e01
        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 +Sessions

        Sessions

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

        SessionStart TimeDump Time
        DESKTOP-M4INQND-91a7872b27 juin 2021, 13:23:3927 juin 2021, 13:23:40
        DESKTOP-M4INQND-11e0a09627 juin 2021, 18:57:0227 juin 2021, 18:57:02
        DESKTOP-M4INQND-7357f01027 juin 2021, 22:23:2727 juin 2021, 22:23:27

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

        ClassId
        java.sql.Dated25610486aed3f31
        java.sql.Timestampb848522074600355
        musichub.business.AudioBookaaa13ef213e0885f
        musichub.business.AudioElement776d9bc5621fe50f
        musichub.business.Categoryf9388aaddff9a152
        musichub.business.CategoryTest8046f4a9dc44152c
        musichub.business.Genreb2fbdfedce493822
        musichub.business.Languaged39e77f1c1a0f641
        musichub.business.LanguageTestf53b266ad5abf5d4
        musichub.business.PlayList5513ec76de07c419
        musichub.business.PlayListTest7e7a002919fb95e1
        musichub.business.Song44a87f7f8335b156
        musichub.business.SongTest88f03b022c5c7270
        musichub.util.LogHandler09990b742e8d897c
        musichub.util.LogHandlerTest49f271871a8ef7bf
        musichub.util.PathValidation170ad3c706c07f6b
        musichub.util.PathValidationTest9eabcd97683d6e01
        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 9effb4f..555d233 100644 --- a/target/site/jacoco/jacoco.csv +++ b/target/site/jacoco/jacoco.csv @@ -2,12 +2,13 @@ GROUP,PACKAGE,CLASS,INSTRUCTION_MISSED,INSTRUCTION_COVERED,BRANCH_MISSED,BRANCH_ spoteezer,musichub.util,PathValidation,0,39,0,4,0,10,0,4,0,2 spoteezer,musichub.util,LogHandler,0,46,0,0,0,11,0,3,0,3 spoteezer,musichub.util,XMLHandler,6,66,0,0,4,21,0,4,0,4 +spoteezer,musichub.util,Policy,53,0,5,0,20,0,6,0,3,0 spoteezer,musichub.business,Album,330,0,14,0,84,0,16,0,9,0 spoteezer,musichub.business,SortByAuthor,9,0,0,0,2,0,2,0,2,0 spoteezer,musichub.business,NoAlbumFoundException,4,0,0,0,2,0,1,0,1,0 spoteezer,musichub.business,Language,3,46,0,0,1,5,1,2,1,2 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,MusicHub,874,0,124,0,209,0,85,0,23,0 spoteezer,musichub.business,Category,3,46,0,0,1,5,1,2,1,2 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 @@ -17,4 +18,4 @@ spoteezer,musichub.business,SortByGenre,9,0,0,0,2,0,2,0,2,0 spoteezer,musichub.business,NoElementFoundException,4,0,0,0,2,0,1,0,1,0 spoteezer,musichub.business,Genre,0,56,0,0,0,6,0,3,0,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 +spoteezer,musichub.main,Main,625,0,42,0,215,0,31,0,3,0 diff --git a/target/site/jacoco/jacoco.xml b/target/site/jacoco/jacoco.xml index 2e1332b..e10770f 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/MusicHub.java.html b/target/site/jacoco/musichub.business/MusicHub.java.html index d150675..ec5e661 100644 --- a/target/site/jacoco/musichub.business/MusicHub.java.html +++ b/target/site/jacoco/musichub.business/MusicHub.java.html @@ -340,25 +340,25 @@ public class MusicHub { } - public void searchAudioElement() throws UnsupportedAudioFileException, NoAlbumFoundException, LineUnavailableException, IOException { - Scanner scanner = new Scanner(System.in); - System.out.println("Entrez le titre ou l'artiste de la musique que vous souhaitez chercher dans la base de données"); - String word = scanner.next().toLowerCase(Locale.ROOT); - List<AudioElement> searchResult = new ArrayList<>(); - for(AudioElement el : elements){ - if(el.getTitle().toLowerCase(Locale.ROOT).contains(word) || el.getArtist().toLowerCase(Locale.ROOT).contains(word)){ - searchResult.add(el); - System.out.println(el); + public void searchAudioElement() throws UnsupportedAudioFileException, NoAlbumFoundException, LineUnavailableException, IOException, NoElementFoundException { + Scanner scanner = new Scanner(System.in); + System.out.println("Entrez le titre ou l'artiste de la musique que vous souhaitez chercher dans la base de données"); + String word = scanner.next().toLowerCase(Locale.ROOT); + List<AudioElement> searchResult = new ArrayList<>(); + for(AudioElement el : elements){ + if(el.getTitle().toLowerCase(Locale.ROOT).contains(word) || el.getArtist().toLowerCase(Locale.ROOT).contains(word)){ + searchResult.add(el); + System.out.println(el); } - } + } - if(searchResult.isEmpty()){ - System.err.println("Aucun résultat pour votre recherche"); + if(searchResult.isEmpty()){ + throw new NoElementFoundException("Any result for your search"); } - if (searchResult.size()==1){ - this.getAudioElement(searchResult, searchResult.get(0).getTitle()); + if (searchResult.size()==1){ + this.getAudioElement(searchResult, searchResult.get(0).getTitle()); } - } + } } \ 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 359d516..f7cd669 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 412 of 2 06331 %150 of 16911 %1341723594995081815
        MusicHub8030 %1140 %7979195195222211
        Album3300 %140 %161684849911
        AudioBook1174728 %8220 %121727394901
        AudioElement8518168 %9218 %111630724901
        PlayList3217084 %5964 %5149530701
        SortByAuthor90 %n/a22222211
        SortByDate90 %n/a22222211
        SortByGenre90 %n/a22222211
        NoAlbumFoundException0 %n/a11221111
        NoPlayListFoundException0 %n/a11221111
        NoElementFoundException0 %n/a11221111
        Language4693 %n/a13161301
        Category4693 %n/a13161301
        Song105100 %6100 %0120260701
        Genre56100 %n/a03060301
        \ No newline at end of file +musichub.business

        musichub.business

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total1 483 of 2 13430 %160 of 17910 %1401783735135182815
        MusicHub8740 %1240 %8585209209232311
        Album3300 %140 %161684849911
        AudioBook1174728 %8220 %121727394901
        AudioElement8518168 %9218 %111630724901
        PlayList3217084 %5964 %5149530701
        SortByAuthor90 %n/a22222211
        SortByDate90 %n/a22222211
        SortByGenre90 %n/a22222211
        NoAlbumFoundException0 %n/a11221111
        NoPlayListFoundException0 %n/a11221111
        NoElementFoundException0 %n/a11221111
        Language4693 %n/a13161301
        Category4693 %n/a13161301
        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 21f0bb6..15d2893 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 412 of 2 06331 %150 of 16911 %1341723594995081815
        MusicHub.java8300 %1140 %8585201201282844
        Album.java3300 %140 %161684849911
        AudioBook.java1174728 %8220 %121727394901
        AudioElement.java8518168 %9218 %111630724901
        PlayList.java3217084 %5964 %5149530701
        NoAlbumFoundException.java0 %n/a11221111
        NoPlayListFoundException.java0 %n/a11221111
        NoElementFoundException.java0 %n/a11221111
        Language.java4693 %n/a13161301
        Category.java4693 %n/a13161301
        Song.java105100 %6100 %0120260701
        Genre.java56100 %n/a03060301
        \ No newline at end of file +musichub.business

        musichub.business

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total1 483 of 2 13430 %160 of 17910 %1401783735135182815
        MusicHub.java9010 %1240 %9191215215292944
        Album.java3300 %140 %161684849911
        AudioBook.java1174728 %8220 %121727394901
        AudioElement.java8518168 %9218 %111630724901
        PlayList.java3217084 %5964 %5149530701
        NoAlbumFoundException.java0 %n/a11221111
        NoPlayListFoundException.java0 %n/a11221111
        NoElementFoundException.java0 %n/a11221111
        Language.java4693 %n/a13161301
        Category.java4693 %n/a13161301
        Song.java105100 %6100 %0120260701
        Genre.java56100 %n/a03060301
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.main/Main.java.html b/target/site/jacoco/musichub.main/Main.java.html index bee2491..121cc55 100644 --- a/target/site/jacoco/musichub.main/Main.java.html +++ b/target/site/jacoco/musichub.main/Main.java.html @@ -11,273 +11,283 @@ import java.util.List; import java.util.Scanner; import static musichub.util.PathValidation.isPathValid; +import static musichub.util.Policy.showTerm; -public class Main { +public class Main { public static void main(String[] args) throws UnsupportedAudioFileException, IOException, LineUnavailableException, NoAlbumFoundException { - - MusicHub theHub = new MusicHub(); - - System.out.println("Type h for available commands"); + showTerm(); - - Scanner scan = new Scanner(System.in); - String choice = scan.nextLine(); + MusicHub theHub = new MusicHub(); + + System.out.println("Type h for available commands"); + + + Scanner scan = new Scanner(System.in); + String choice = scan.nextLine(); String albumTitle; - - if (choice.length() == 0) System.exit(0); - - while (!choice.equals("")) { //if the user puts nothing, quit the loop/system - switch (choice.charAt(0)) { - case 'q': //added the option directly in the switch instead of the loop - System.exit(0); - case 'h': - printAvailableCommands(); - choice = scan.nextLine(); - break; + + if (choice.length() == 0) System.exit(0); + + while (!choice.equals("")) { //if the user puts nothing, quit the loop/system + switch (choice.charAt(0)) { + case 'q': //added the option directly in the switch instead of the loop + System.exit(0); + case 'h': + printAvailableCommands(); + choice = scan.nextLine(); + break; case 't': - //album titles, ordered by date - System.out.println(theHub.getAlbumsTitlesSortedByDate()); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //album titles, ordered by date + System.out.println(theHub.getAlbumsTitlesSortedByDate()); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'g': - //songs of an album, sorted by genre - System.out.println("Songs of an album sorted by genre will be displayed; enter the album name, available albums are:"); - System.out.println(theHub.getAlbumsTitlesSortedByDate()); - - albumTitle = scan.nextLine(); - try { - List<Song> songs = theHub.getAlbumSongsSortedByGenre(albumTitle); - System.out.println(songs); - } catch (NoAlbumFoundException ex) { - System.out.println("No album found with the requested title " + ex.getMessage()); - } - printAvailableCommands(); - choice = scan.nextLine(); - break; + //songs of an album, sorted by genre + System.out.println("Songs of an album sorted by genre will be displayed; enter the album name, available albums are:"); + System.out.println(theHub.getAlbumsTitlesSortedByDate()); + + albumTitle = scan.nextLine(); + try { + List<Song> songs = theHub.getAlbumSongsSortedByGenre(albumTitle); + System.out.println(songs); + } catch (NoAlbumFoundException ex) { + System.out.println("No album found with the requested title " + ex.getMessage()); + } + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'd': - //songs of an album - System.out.println("Songs of an album will be displayed; enter the album name, available albums are:"); - System.out.println(theHub.getAlbumsTitlesSortedByDate()); - - albumTitle = scan.nextLine(); - try { - List<AudioElement> songs = theHub.getAlbumSongs(albumTitle); - System.out.println(theHub.getAlbumSongs(albumTitle)); - String song = scan.nextLine(); - theHub.getAudioElement(songs, song); - } catch (NoAlbumFoundException ex) { - System.out.println("No album found with the requested title " + ex.getMessage()); - } - printAvailableCommands(); - choice = scan.nextLine(); - break; + //songs of an album + System.out.println("Songs of an album will be displayed; enter the album name, available albums are:"); + System.out.println(theHub.getAlbumsTitlesSortedByDate()); + + albumTitle = scan.nextLine(); + try { + List<AudioElement> songs = theHub.getAlbumSongs(albumTitle); + System.out.println(theHub.getAlbumSongs(albumTitle)); + String song = scan.nextLine(); + theHub.getAudioElement(songs, song); + } catch (NoAlbumFoundException ex) { + System.out.println("No album found with the requested title " + ex.getMessage()); + } + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'u': - //audiobooks ordered by author - System.out.println(theHub.getAudiobooksTitlesSortedByAuthor()); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //audiobooks ordered by author + System.out.println(theHub.getAudiobooksTitlesSortedByAuthor()); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'c': - // add a new song - System.out.println("Enter a new song: "); - System.out.println("Song title: "); - String title = scan.nextLine(); - System.out.println("Song genre (jazz, classic, hiphop, rock, pop, rap):"); - String genre = scan.nextLine(); - System.out.println("Song artist: "); - String artist = scan.nextLine(); - System.out.println("Song length in seconds: "); - int length = Integer.parseInt(scan.nextLine()); - - System.out.println("Song content: "); - String content = scan.nextLine(); - if (!isPathValid(content)) { - String logMsg = "The music file was not found with the path you've provided or the extension is not .wav"; - LogHandler.write(logMsg, "WARNING"); //write a line in the log file - System.out.println(logMsg + "\nType h for available commands"); - choice = scan.nextLine(); - break; + // add a new song + System.out.println("Enter a new song: "); + System.out.println("Song title: "); + String title = scan.nextLine(); + System.out.println("Song genre (jazz, classic, hiphop, rock, pop, rap):"); + String genre = scan.nextLine(); + System.out.println("Song artist: "); + String artist = scan.nextLine(); + System.out.println("Song length in seconds: "); + int length = Integer.parseInt(scan.nextLine()); + + System.out.println("Song content: "); + String content = scan.nextLine(); + if (!isPathValid(content)) { + String logMsg = "The music file was not found with the path you've provided or the extension is not .wav"; + LogHandler.write(logMsg, "WARNING"); //write a line in the log file + System.out.println(logMsg + "\nType h for available commands"); + choice = scan.nextLine(); + break; } - - Song s = new Song(title, artist, length, content, genre); - theHub.addElement(s); - System.out.println("New element list: "); - Iterator<AudioElement> it = theHub.elements(); - while (it.hasNext()) System.out.println(it.next().getTitle()); - System.out.println("Song created!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + + Song s = new Song(title, artist, length, content, genre); + theHub.addElement(s); + System.out.println("New element list: "); + Iterator<AudioElement> it = theHub.elements(); + while (it.hasNext()) System.out.println(it.next().getTitle()); + System.out.println("Song created!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'a': - // add a new album - System.out.println("Enter a new album: "); - System.out.println("Album title: "); - String aTitle = scan.nextLine(); - System.out.println("Album artist: "); - String aArtist = scan.nextLine(); - System.out.println("Album length in seconds: "); - int aLength = Integer.parseInt(scan.nextLine()); - System.out.println("Album date as YYYY-DD-MM: "); - String aDate = scan.nextLine(); - Album a = new Album(aTitle, aArtist, aLength, aDate); - theHub.addAlbum(a); - System.out.println("New list of albums: "); - Iterator<Album> ita = theHub.albums(); - while (ita.hasNext()) System.out.println(ita.next().getTitle()); - System.out.println("Album created!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + // add a new album + System.out.println("Enter a new album: "); + System.out.println("Album title: "); + String aTitle = scan.nextLine(); + System.out.println("Album artist: "); + String aArtist = scan.nextLine(); + System.out.println("Album length in seconds: "); + int aLength = Integer.parseInt(scan.nextLine()); + System.out.println("Album date as YYYY-DD-MM: "); + String aDate = scan.nextLine(); + Album a = new Album(aTitle, aArtist, aLength, aDate); + theHub.addAlbum(a); + System.out.println("New list of albums: "); + Iterator<Album> ita = theHub.albums(); + while (ita.hasNext()) System.out.println(ita.next().getTitle()); + System.out.println("Album created!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case '+': - //add a song to an album: - System.out.println("Add an existing song to an existing album"); - System.out.println("Type the name of the song you wish to add. Available songs: "); - Iterator<AudioElement> itae = theHub.elements(); - while (itae.hasNext()) { - AudioElement ae = itae.next(); - if (ae instanceof Song) System.out.println(ae.getTitle()); - } - String songTitle = scan.nextLine(); - - System.out.println("Type the name of the album you wish to enrich. Available albums: "); - Iterator<Album> ait = theHub.albums(); - while (ait.hasNext()) { - Album al = ait.next(); - System.out.println(al.getTitle()); - } - String titleAlbum = scan.nextLine(); - try { - theHub.addElementToAlbum(songTitle, titleAlbum); - } catch (NoAlbumFoundException | NoElementFoundException ex) { - System.out.println(ex.getMessage()); - } - System.out.println("Song added to the album!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //add a song to an album: + System.out.println("Add an existing song to an existing album"); + System.out.println("Type the name of the song you wish to add. Available songs: "); + Iterator<AudioElement> itae = theHub.elements(); + while (itae.hasNext()) { + AudioElement ae = itae.next(); + if (ae instanceof Song) System.out.println(ae.getTitle()); + } + String songTitle = scan.nextLine(); + + System.out.println("Type the name of the album you wish to enrich. Available albums: "); + Iterator<Album> ait = theHub.albums(); + while (ait.hasNext()) { + Album al = ait.next(); + System.out.println(al.getTitle()); + } + String titleAlbum = scan.nextLine(); + try { + theHub.addElementToAlbum(songTitle, titleAlbum); + } catch (NoAlbumFoundException | NoElementFoundException ex) { + System.out.println(ex.getMessage()); + } + System.out.println("Song added to the album!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'l': - // add a new audiobook - System.out.println("Enter a new audiobook: "); - System.out.println("AudioBook title: "); - String bTitle = scan.nextLine(); - System.out.println("AudioBook category (youth, novel, theater, documentary, speech)"); - String bCategory = scan.nextLine(); - System.out.println("AudioBook artist: "); - String bArtist = scan.nextLine(); - System.out.println("AudioBook length in seconds: "); - int bLength = Integer.parseInt(scan.nextLine()); - System.out.println("AudioBook content: "); - String bContent = scan.nextLine(); - System.out.println("AudioBook language (french, english, italian, spanish, german)"); - String bLanguage = scan.nextLine(); - AudioBook b = new AudioBook(bTitle, bArtist, bLength, bContent, bLanguage, bCategory); - theHub.addElement(b); - System.out.println("Audiobook created! New element list: "); - Iterator<AudioElement> itl = theHub.elements(); - while (itl.hasNext()) System.out.println(itl.next().getTitle()); - printAvailableCommands(); - choice = scan.nextLine(); - break; + // add a new audiobook + System.out.println("Enter a new audiobook: "); + System.out.println("AudioBook title: "); + String bTitle = scan.nextLine(); + System.out.println("AudioBook category (youth, novel, theater, documentary, speech)"); + String bCategory = scan.nextLine(); + System.out.println("AudioBook artist: "); + String bArtist = scan.nextLine(); + System.out.println("AudioBook length in seconds: "); + int bLength = Integer.parseInt(scan.nextLine()); + System.out.println("AudioBook content: "); + String bContent = scan.nextLine(); + System.out.println("AudioBook language (french, english, italian, spanish, german)"); + String bLanguage = scan.nextLine(); + AudioBook b = new AudioBook(bTitle, bArtist, bLength, bContent, bLanguage, bCategory); + theHub.addElement(b); + System.out.println("Audiobook created! New element list: "); + Iterator<AudioElement> itl = theHub.elements(); + while (itl.hasNext()) System.out.println(itl.next().getTitle()); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'p': - //create a new playlist from existing elements - System.out.println("Add an existing song or audiobook to a new playlist"); - System.out.println("Existing playlists:"); - Iterator<PlayList> itpl = theHub.playlists(); - while (itpl.hasNext()) { - PlayList pl = itpl.next(); - System.out.println(pl.getTitle()); - } - System.out.println("Type the name of the playlist you wish to create:"); - String playListTitle = scan.nextLine(); - PlayList pl = new PlayList(playListTitle); - theHub.addPlaylist(pl); - System.out.println("Available elements: "); - - Iterator<AudioElement> itael = theHub.elements(); - while (itael.hasNext()) { - AudioElement ae = itael.next(); - System.out.println(ae.getTitle()); - } - while (choice.charAt(0) != 'n') { - System.out.println("Type the name of the audio element you wish to add or 'n' to exit:"); - String elementTitle = scan.nextLine(); - try { - theHub.addElementToPlayList(elementTitle, playListTitle); - } catch (NoPlayListFoundException | NoElementFoundException ex) { - System.out.println(ex.getMessage()); - } - - System.out.println("Type y to add a new one, n to end"); - choice = scan.nextLine(); - } - System.out.println("Playlist created!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //create a new playlist from existing elements + System.out.println("Add an existing song or audiobook to a new playlist"); + System.out.println("Existing playlists:"); + Iterator<PlayList> itpl = theHub.playlists(); + while (itpl.hasNext()) { + PlayList pl = itpl.next(); + System.out.println(pl.getTitle()); + } + System.out.println("Type the name of the playlist you wish to create:"); + String playListTitle = scan.nextLine(); + PlayList pl = new PlayList(playListTitle); + theHub.addPlaylist(pl); + System.out.println("Available elements: "); + + Iterator<AudioElement> itael = theHub.elements(); + while (itael.hasNext()) { + AudioElement ae = itael.next(); + System.out.println(ae.getTitle()); + } + while (choice.charAt(0) != 'n') { + System.out.println("Type the name of the audio element you wish to add or 'n' to exit:"); + String elementTitle = scan.nextLine(); + try { + theHub.addElementToPlayList(elementTitle, playListTitle); + } catch (NoPlayListFoundException | NoElementFoundException ex) { + System.out.println(ex.getMessage()); + } + + System.out.println("Type y to add a new one, n to end"); + choice = scan.nextLine(); + } + System.out.println("Playlist created!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case '-': - //delete a playlist - System.out.println("Delete an existing playlist. Available playlists:"); - Iterator<PlayList> itp = theHub.playlists(); - while (itp.hasNext()) { - PlayList p = itp.next(); - System.out.println(p.getTitle()); - } - String plTitle = scan.nextLine(); - try { - theHub.deletePlayList(plTitle); - } catch (NoPlayListFoundException ex) { - System.out.println(ex.getMessage()); - } - System.out.println("Playlist deleted!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //delete a playlist + System.out.println("Delete an existing playlist. Available playlists:"); + Iterator<PlayList> itp = theHub.playlists(); + while (itp.hasNext()) { + PlayList p = itp.next(); + System.out.println(p.getTitle()); + } + String plTitle = scan.nextLine(); + try { + theHub.deletePlayList(plTitle); + } catch (NoPlayListFoundException ex) { + System.out.println(ex.getMessage()); + } + System.out.println("Playlist deleted!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 's': - //save elements, albums, playlists - theHub.saveElements(); - theHub.saveAlbums(); - theHub.savePlayLists(); - System.out.println("Elements, albums and playlists saved!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + //save elements, albums, playlists + theHub.saveElements(); + theHub.saveAlbums(); + theHub.savePlayLists(); + System.out.println("Elements, albums and playlists saved!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'r': - //search a music - theHub.searchAudioElement(); - printAvailableCommands(); - case 'o': + //search a music + try { + theHub.searchAudioElement(); + } + catch (NoElementFoundException e){ + System.err.println(e.getMessage()); + } + catch (java.io.FileNotFoundException e){ + System.err.println(e.getMessage()+" Please create a file with the extension .wav inside the song folder at root of the app"); + } + printAvailableCommands(); + case 'o': //consult the app logs - LogHandler.read(); - System.out.println("Type h for available commands"); - choice = scan.nextLine(); - break; - default: - - break; + LogHandler.read(); + System.out.println("Type h for available commands"); + choice = scan.nextLine(); + break; + default: + + break; } - } - scan.close(); - } - - private static void printAvailableCommands() { - System.out.println("t: display the album titles, ordered by date"); - System.out.println("g: display songs of an album, ordered by genre"); - System.out.println("d: display songs of an album"); - System.out.println("u: display audiobooks ordered by author"); - System.out.println("r: search audio elements"); - System.out.println("c: add a new song"); - System.out.println("a: add a new album"); - System.out.println("+: add a song to an album"); - System.out.println("l: add a new audiobook"); - System.out.println("p: create a new playlist from existing songs and audio books"); - System.out.println("-: delete an existing playlist"); - System.out.println("s: save elements, albums, playlists"); - System.out.println("o: consult the app logs"); - System.out.println("q: quit program"); - } + } + scan.close(); + } + + private static void printAvailableCommands() { + System.out.println("t: display the album titles, ordered by date"); + System.out.println("g: display songs of an album, ordered by genre"); + System.out.println("d: display songs of an album"); + System.out.println("u: display audiobooks ordered by author"); + System.out.println("r: search audio elements"); + System.out.println("c: add a new song"); + System.out.println("a: add a new album"); + System.out.println("+: add a song to an album"); + System.out.println("l: add a new audiobook"); + System.out.println("p: create a new playlist from existing songs and audio books"); + System.out.println("-: delete an existing playlist"); + System.out.println("s: save elements, albums, playlists"); + System.out.println("o: consult the app logs"); + System.out.println("q: quit program"); + } } \ No newline at end of file diff --git a/target/spoteezer-0.1.0-shaded.jar b/target/spoteezer-0.1.0-shaded.jar index eb07fdf..4c8e6af 100644 Binary files a/target/spoteezer-0.1.0-shaded.jar and b/target/spoteezer-0.1.0-shaded.jar differ diff --git a/target/spoteezer-0.1.0.jar b/target/spoteezer-0.1.0.jar index eb07fdf..4c8e6af 100644 Binary files a/target/spoteezer-0.1.0.jar and b/target/spoteezer-0.1.0.jar differ diff --git a/target/surefire-reports/TEST-musichub.business.CategoryTest.xml b/target/surefire-reports/TEST-musichub.business.CategoryTest.xml index 8ce59e6..bb2ca30 100644 --- a/target/surefire-reports/TEST-musichub.business.CategoryTest.xml +++ b/target/surefire-reports/TEST-musichub.business.CategoryTest.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -55,5 +55,5 @@ - + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.business.LanguageTest.xml b/target/surefire-reports/TEST-musichub.business.LanguageTest.xml index c41bab0..5ebb15c 100644 --- a/target/surefire-reports/TEST-musichub.business.LanguageTest.xml +++ b/target/surefire-reports/TEST-musichub.business.LanguageTest.xml @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + diff --git a/target/surefire-reports/TEST-musichub.business.PlayListTest.xml b/target/surefire-reports/TEST-musichub.business.PlayListTest.xml index 3bf4556..dde9373 100644 --- a/target/surefire-reports/TEST-musichub.business.PlayListTest.xml +++ b/target/surefire-reports/TEST-musichub.business.PlayListTest.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -55,9 +55,9 @@ - + - + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.business.SongTest.xml b/target/surefire-reports/TEST-musichub.business.SongTest.xml index 83aee37..2bfbc93 100644 --- a/target/surefire-reports/TEST-musichub.business.SongTest.xml +++ b/target/surefire-reports/TEST-musichub.business.SongTest.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -55,10 +55,10 @@ - - + + - - + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml b/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml index 754079a..b5707c9 100644 --- a/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml +++ b/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -56,6 +56,6 @@ - - + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml b/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml index 8f4f524..10ec3d9 100644 --- a/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml +++ b/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + diff --git a/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml b/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml index 72a1c5b..3022713 100644 --- a/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml +++ b/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -55,6 +55,6 @@ - + \ No newline at end of file diff --git a/target/surefire-reports/musichub.business.CategoryTest.txt b/target/surefire-reports/musichub.business.CategoryTest.txt index b3656ab..3854e92 100644 --- a/target/surefire-reports/musichub.business.CategoryTest.txt +++ b/target/surefire-reports/musichub.business.CategoryTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: musichub.business.CategoryTest ------------------------------------------------------------------------------- -Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 s - in musichub.business.CategoryTest +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 s - in musichub.business.CategoryTest diff --git a/target/surefire-reports/musichub.business.PlayListTest.txt b/target/surefire-reports/musichub.business.PlayListTest.txt index 7109820..c738c60 100644 --- a/target/surefire-reports/musichub.business.PlayListTest.txt +++ b/target/surefire-reports/musichub.business.PlayListTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: musichub.business.PlayListTest ------------------------------------------------------------------------------- -Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 s - in musichub.business.PlayListTest +Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 s - in musichub.business.PlayListTest diff --git a/target/surefire-reports/musichub.business.SongTest.txt b/target/surefire-reports/musichub.business.SongTest.txt index 1b93b96..4e87759 100644 --- a/target/surefire-reports/musichub.business.SongTest.txt +++ b/target/surefire-reports/musichub.business.SongTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: musichub.business.SongTest ------------------------------------------------------------------------------- -Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 s - in musichub.business.SongTest +Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 s - in musichub.business.SongTest diff --git a/target/surefire-reports/musichub.util.XMLHandlerTest.txt b/target/surefire-reports/musichub.util.XMLHandlerTest.txt index 71a2254..8938cdc 100644 --- a/target/surefire-reports/musichub.util.XMLHandlerTest.txt +++ b/target/surefire-reports/musichub.util.XMLHandlerTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: musichub.util.XMLHandlerTest ------------------------------------------------------------------------------- -Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.127 s - in musichub.util.XMLHandlerTest +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.119 s - in musichub.util.XMLHandlerTest -- cgit v1.2.3 From 22d53407aa128c3e3019733ddcbd3bb6dd5541bf Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Sun, 27 Jun 2021 22:24:26 +0200 Subject: mvn package --- target/classes/musichub/util/Policy.class | Bin 0 -> 10981 bytes .../compile/default-compile/inputFiles.lst | 1 + .../testCompile/default-testCompile/inputFiles.lst | 2 + target/site/jacoco/musichub.business/MusicHub.html | 2 +- target/site/jacoco/musichub.main/Main.html | 2 +- target/site/jacoco/musichub.main/index.html | 2 +- target/site/jacoco/musichub.main/index.source.html | 2 +- target/site/jacoco/musichub.util/Policy.html | 1 + target/site/jacoco/musichub.util/Policy.java.html | 132 +++++++++++++++++++++ target/site/jacoco/musichub.util/index.html | 2 +- target/site/jacoco/musichub.util/index.source.html | 2 +- 11 files changed, 142 insertions(+), 6 deletions(-) create mode 100644 target/classes/musichub/util/Policy.class create mode 100644 target/site/jacoco/musichub.util/Policy.html create mode 100644 target/site/jacoco/musichub.util/Policy.java.html (limited to 'target/site/jacoco/musichub.business') diff --git a/target/classes/musichub/util/Policy.class b/target/classes/musichub/util/Policy.class new file mode 100644 index 0000000..bec4189 Binary files /dev/null and b/target/classes/musichub/util/Policy.class differ diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index a533945..f14990a 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -12,5 +12,6 @@ C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\AudioElement. C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\Category.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\NoAlbumFoundException.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\NoPlayListFoundException.java +C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\util\Policy.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\business\NoElementFoundException.java C:\Users\SoftA\Documents\spoteezer\src\main\java\musichub\util\XMLHandler.java 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 0b05cf3..b788f0f 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,5 +1,7 @@ C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\business\PlayListTest.java +C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\business\CategoryTest.java C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\util\XMLHandlerTest.java +C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\business\LanguageTest.java C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\util\LogHandlerTest.java C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\util\PathValidationTest.java C:\Users\SoftA\Documents\spoteezer\src\test\java\musichub\business\SongTest.java diff --git a/target/site/jacoco/musichub.business/MusicHub.html b/target/site/jacoco/musichub.business/MusicHub.html index 6bedc98..4ed5db0 100644 --- a/target/site/jacoco/musichub.business/MusicHub.html +++ b/target/site/jacoco/musichub.business/MusicHub.html @@ -1 +1 @@ -MusicHub

        MusicHub

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total803 of 8030 %114 of 1140 %79791951952222
        addElementToAlbum(String, String)820 %120 %77202011
        addElementToPlayList(String, String)820 %120 %77202011
        getAlbumSongsSortedByGenre(String)790 %140 %88161611
        getAlbumSongs(String)730 %140 %88151511
        loadElements()640 %100 %66181811
        getAudiobooksTitlesSortedByAuthor()530 %60 %449911
        saveElements()470 %80 %55121211
        loadAlbums()440 %80 %55111111
        loadPlaylists()440 %80 %55111111
        deletePlayList(String)400 %80 %55111111
        saveAlbums()360 %40 %33101011
        savePlayLists()360 %40 %33101011
        getAlbumsTitlesSortedByDate()320 %20 %225511
        MusicHub()290 %n/a119911
        getAudioElement(List, String)190 %40 %335511
        static {...}130 %n/a114411
        addElement(AudioElement)60 %n/a112211
        addAlbum(Album)60 %n/a112211
        addPlaylist(PlayList)60 %n/a112211
        albums()40 %n/a111111
        playlists()40 %n/a111111
        elements()40 %n/a111111
        \ No newline at end of file +MusicHub

        MusicHub

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total874 of 8740 %124 of 1240 %85852092092323
        addElementToAlbum(String, String)820 %120 %77202011
        addElementToPlayList(String, String)820 %120 %77202011
        getAlbumSongsSortedByGenre(String)790 %140 %88161611
        getAlbumSongs(String)730 %140 %88151511
        searchAudioElement()710 %100 %66141411
        loadElements()640 %100 %66181811
        getAudiobooksTitlesSortedByAuthor()530 %60 %449911
        saveElements()470 %80 %55121211
        loadAlbums()440 %80 %55111111
        loadPlaylists()440 %80 %55111111
        deletePlayList(String)400 %80 %55111111
        saveAlbums()360 %40 %33101011
        savePlayLists()360 %40 %33101011
        getAlbumsTitlesSortedByDate()320 %20 %225511
        MusicHub()290 %n/a119911
        getAudioElement(List, String)190 %40 %335511
        static {...}130 %n/a114411
        addElement(AudioElement)60 %n/a112211
        addAlbum(Album)60 %n/a112211
        addPlaylist(PlayList)60 %n/a112211
        albums()40 %n/a111111
        playlists()40 %n/a111111
        elements()40 %n/a111111
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.main/Main.html b/target/site/jacoco/musichub.main/Main.html index ea5f0da..3666c2b 100644 --- a/target/site/jacoco/musichub.main/Main.html +++ b/target/site/jacoco/musichub.main/Main.html @@ -1 +1 @@ -Main

        Main

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total605 of 6050 %41 of 410 %303020620633
        main(String[])5620 %410 %282819119111
        printAvailableCommands()400 %n/a11141411
        Main()0 %n/a111111
        \ No newline at end of file +Main

        Main

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total625 of 6250 %42 of 420 %313121521533
        main(String[])5790 %420 %292919919911
        printAvailableCommands()430 %n/a11151511
        Main()0 %n/a111111
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.main/index.html b/target/site/jacoco/musichub.main/index.html index 191e4db..cd2b4c7 100644 --- a/target/site/jacoco/musichub.main/index.html +++ b/target/site/jacoco/musichub.main/index.html @@ -1 +1 @@ -musichub.main

        musichub.main

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total605 of 6050 %41 of 410 %30302062063311
        Main6050 %410 %30302062063311
        \ No newline at end of file +musichub.main

        musichub.main

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total625 of 6250 %42 of 420 %31312152153311
        Main6250 %420 %31312152153311
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.main/index.source.html b/target/site/jacoco/musichub.main/index.source.html index 654a78a..60b6575 100644 --- a/target/site/jacoco/musichub.main/index.source.html +++ b/target/site/jacoco/musichub.main/index.source.html @@ -1 +1 @@ -musichub.main

        musichub.main

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total605 of 6050 %41 of 410 %30302062063311
        Main.java6050 %410 %30302062063311
        \ No newline at end of file +musichub.main

        musichub.main

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total625 of 6250 %42 of 420 %31312152153311
        Main.java6250 %420 %31312152153311
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.util/Policy.html b/target/site/jacoco/musichub.util/Policy.html new file mode 100644 index 0000000..11ce779 --- /dev/null +++ b/target/site/jacoco/musichub.util/Policy.html @@ -0,0 +1 @@ +Policy

        Policy

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
        Total53 of 530 %5 of 50 %66202033
        showTerm()390 %50 %44151511
        Policy()70 %n/a112211
        printAgreement()70 %n/a113311
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.util/Policy.java.html b/target/site/jacoco/musichub.util/Policy.java.html new file mode 100644 index 0000000..2eeb294 --- /dev/null +++ b/target/site/jacoco/musichub.util/Policy.java.html @@ -0,0 +1,132 @@ +Policy.java

        Policy.java

        package musichub.util;
        +
        +import java.util.Scanner;
        +
        +/**
        + * Class ...
        + *
        + * @author Anthony BOULANT
        + * @version 1.0
        + */
        +
        +public final class Policy {
        +
        +    /**
        +     * Method that just throws an AssertionError if the class is called
        +     *
        +     * @throws AssertionError you can't instantiate this class
        +     * @author Anthony BOULANT
        +     */
        +
        +    public Policy() {
        +        throw new AssertionError("You just can't instantiate this class.");
        +    }
        +
        +    public static void showTerm() {
        +
        +        String termsAndConditions = "Terms and Conditions\n" +
        +                "\n" +
        +                "\n" +
        +                "In using this website you are deemed to have read and agreed to the following terms and conditions:\n" +
        +                "\n" +
        +                "\n" +
        +                "The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and any or all Agreements: \"Client\", “You” and “Your” refers to you, the person accessing this website and accepting the Company’s terms and conditions. \"The Company\", “Ourselves”, “We” and \"Us\", refers to our Company. “Party”, “Parties”, or “Us”, refers to both the Client and ourselves, or either the Client or ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner, whether by formal meetings of a fixed duration, or any other means, for the express purpose of meeting the Client’s needs in respect of provision of the Company’s stated services/products, in accordance with and subject to, prevailing English Law. Any use of the above terminology or other words in the singular, plural, capitalisation and/or he/she or they, are taken as interchangeable and therefore as referring to same.\n" +
        +                "\n" +
        +                "\n" +
        +                "Privacy Statement\n" +
        +                "We are committed to protecting your privacy. Authorized employees within the company on a need to know basis only use any information collected from individual customers. We constantly review our systems and data to ensure the best possible service to our customers. Parliament has created specific offences for unauthorised actions against computer systems and data. We will investigate any such actions with a view to prosecuting and/or taking civil proceedings to recover damages against those responsible\n" +
        +                "\n" +
        +                "\n" +
        +                "Confidentiality\n" +
        +                "We are registered under the Data Protection Act 1998 and as such, any information concerning the Client and their respective Client Records may be passed to third parties. However, Client records are regarded as confidential and therefore will not be divulged to any third party, other than if legally required to do so to the appropriate authorities. Clients have the right to request sight of, and copies of any and all Client Records we keep, on the proviso that we are given reasonable notice of such a request. Clients are requested to retain copies of any literature issued in relation to the provision of our services. Where appropriate, we shall issue Client’s with appropriate written information, handouts or copies of records as part of an agreed contract, for the benefit of both parties.\n" +
        +                "\n" +
        +                "We will not sell, share, or rent your personal information to any third party or use your e-mail address for unsolicited mail. Any emails sent by this Company will only be in connection with the provision of agreed services and products.\n" +
        +                "\n" +
        +                "\n" +
        +                "Disclaimer\n" +
        +                "Exclusions and Limitations \n" +
        +                "The information on this web site is provided on an \"as is\" basis. To the fullest extent permitted by law, this Company:\n" +
        +                "\uF0A7\texcludes all representations and warranties relating to this website and its contents or which is or may be provided by any affiliates or any other third party, including in relation to any inaccuracies or omissions in this website and/or the Company’s literature; and \n" +
        +                "\uF0A7\texcludes all liability for damages arising out of or in connection with your use of this website. This includes, without limitation, direct loss, loss of business or profits (whether or not the loss of such profits was foreseeable, arose in the normal course of things or you have advised this Company of the possibility of such potential loss), damage caused to your computer, computer software, systems and programs and the data thereon or any other direct or indirect, consequential and incidental damages. \n" +
        +                "This Company does not however exclude liability for death or personal injury caused by its negligence. The above exclusions and limitations apply only to the extent permitted by law. None of your statutory rights as a consumer are affected. \n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "Cancellation Policy\n" +
        +                "Minimum 24 hours’ notice of cancellation required. Notification for instance, in person, via email, mobile phone ‘text message’ and/or fax, or any other means will be accepted subject to confirmation in writing. We reserve the right to levy a £30 charge to cover any subsequent administrative expenses.\n" +
        +                "\n" +
        +                "\n" +
        +                "Termination of Agreements and Refunds Policy\n" +
        +                "Both the Client and we have the right to terminate any Services Agreement for any reason, including the ending of services that are already underway. No refunds shall be offered, where a Service is deemed to have begun and is, for all intents and purposes, underway. Any monies that have been paid to us which constitute payment in respect of the provision of unused Services, shall be refunded.\n" +
        +                "\n" +
        +                "\n" +
        +                "Availability \n" +
        +                "Unless otherwise stated, the services featured on this website are only available in France, or in relation to postings from France. All advertising is intended solely for the France market. You are solely responsible for evaluating the fitness for a particular purpose of any downloads, programs and text available through this site. Redistribution or republication of any part of this site or its content is prohibited, including such by framing or other similar or any other means, without the express written consent of the Company. The Company does not warrant that the service from this site will be uninterrupted, timely or error free, although it is provided to the best ability. By using this service you thereby indemnify this Company, its employees, agents and affiliates against any loss or damage, in whatever manner, howsoever caused.\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "Copyright Notice \n" +
        +                "Copyright and other relevant intellectual property rights exists on all text relating to the Company’s services and the full content of this application. \n" +
        +                "\n" +
        +                "\n" +
        +                "Communication\n" +
        +                "We have several different e-mail addresses for different queries. These, & other contact information, can be found on our Contact Us link on our website or via Company literature or via the Company’s stated telephone, facsimile or mobile telephone numbers.\n" +
        +                "\n" +
        +                "\n" +
        +                "Force Majeure\n" +
        +                "Neither party shall be liable to the other for any failure to perform any obligation under any Agreement which is due to an event beyond the control of such party including but not limited to any Act of God, terrorism, war, Political insurgence, insurrection, riot, civil unrest, act of civil or military authority, uprising, earthquake, flood or any other natural or manmade eventuality outside of our control, which causes the termination of an agreement or contract entered into, nor which could have been reasonably foreseen. Any Party affected by such event shall forthwith inform the other Party of the same and shall use all reasonable endeavours to comply with the terms and conditions of any Agreement contained herein.\n" +
        +                "\n" +
        +                "\n" +
        +                "Waiver\n" +
        +                "Failure of either Party to insist upon strict performance of any provision of this or any Agreement or the failure of either Party to exercise any right or remedy to which it, he or they are entitled hereunder shall not constitute a waiver thereof and shall not cause a diminution of the obligations under this or any Agreement. No waiver of any of the provisions of this or any Agreement shall be effective unless it is expressly stated to be such and signed by both Parties.\n" +
        +                "\n" +
        +                "\n" +
        +                "General\n" +
        +                "The laws of France govern these terms and conditions. By accessing this application, you consent to these terms and conditions and to the exclusive jurisdiction of the English courts in all disputes arising out of such access. If any of these terms are deemed invalid or unenforceable for any reason (including, but not limited to the exclusions and limitations set out above), then the invalid or unenforceable provision will be severed from these terms and the remaining terms will continue to apply. Failure of the Company to enforce any of the provisions set out in these Terms and Conditions and any Agreement, or failure to exercise any option to terminate, shall not be construed as waiver of such provisions and shall not affect the validity of these Terms and Conditions or of any Agreement or any part thereof, or the right thereafter to enforce each and every provision. These Terms and Conditions shall not be amended, modified, varied or supplemented except in writing and signed by duly authorised representatives of the Company.\n" +
        +                "\n" +
        +                "\n" +
        +                "Notification of Changes\n" +
        +                "The Company reserves the right to change these conditions from time to time as it sees fit and your continued use of the site will signify your acceptance of any adjustment to these terms. If there are any changes to our privacy policy, we will announce that these changes have been made on our home page and on other key pages on our site. If there are any changes in how we use our site customers’ Personally Identifiable Information, notification by e-mail or postal mail will be made to those affected by this change. Any changes to our privacy policy will be posted on our web site 30 days prior to these changes taking place. You are therefore advised to re-read this statement on a regular basis\n" +
        +                "\n" +
        +                "\n" +
        +                "These terms and conditions form part of the Agreement between the Client and ourselves. Your accessing of this website and/or undertaking of a booking or Agreement indicates your understanding, agreement to and acceptance, of the Disclaimer Notice and the full Terms and Conditions contained herein. Your statutory Consumer Rights are unaffected.    \n" +
        +                "© Company Name 2021 All Rights Reserved\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "\n" +
        +                "\n";
        +
        +        printAgreement();
        +        Scanner scan = new Scanner(System.in);
        +        String choice = scan.nextLine().toLowerCase();
        +
        +        while (!choice.equals("y")) {
        +            switch (choice.charAt(0)) {
        +                case 'n' -> System.exit(0);
        +                case 'r' -> {
        +                    System.out.println(termsAndConditions);
        +                    printAgreement();
        +                    choice = scan.nextLine().toLowerCase();
        +                }
        +                default -> {
        +                    printAgreement();
        +                    choice = scan.nextLine().toLowerCase();
        +                }
        +            }
        +        }
        +    }
        +
        +    private static void printAgreement() {
        +        System.out.println("By using our app, do you accept our Terms and Conditions ?");
        +        System.out.println("[YES : y    NO :  n    READ : r]");
        +    }
        +}
        +
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.util/index.html b/target/site/jacoco/musichub.util/index.html index 35e136c..936c84a 100644 --- a/target/site/jacoco/musichub.util/index.html +++ b/target/site/jacoco/musichub.util/index.html @@ -1 +1 @@ -musichub.util

        musichub.util

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total6 of 15796 %0 of 4100 %0114460903
        XMLHandler66691 %n/a044250401
        LogHandler46100 %n/a030110301
        PathValidation39100 %4100 %040100201
        \ No newline at end of file +musichub.util

        musichub.util

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total59 of 21071 %5 of 944 %617246631214
        Policy530 %50 %6620203311
        XMLHandler66691 %n/a044250401
        LogHandler46100 %n/a030110301
        PathValidation39100 %4100 %040100201
        \ No newline at end of file diff --git a/target/site/jacoco/musichub.util/index.source.html b/target/site/jacoco/musichub.util/index.source.html index d40b929..b7009ee 100644 --- a/target/site/jacoco/musichub.util/index.source.html +++ b/target/site/jacoco/musichub.util/index.source.html @@ -1 +1 @@ -musichub.util

        musichub.util

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total6 of 15796 %0 of 4100 %0114460903
        XMLHandler.java66691 %n/a044250401
        LogHandler.java46100 %n/a030110301
        PathValidation.java39100 %4100 %040100201
        \ No newline at end of file +musichub.util

        musichub.util

        ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
        Total59 of 21071 %5 of 944 %617246631214
        Policy.java530 %50 %6620203311
        XMLHandler.java66691 %n/a044250401
        LogHandler.java46100 %n/a030110301
        PathValidation.java39100 %4100 %040100201
        \ No newline at end of file -- cgit v1.2.3 From 49196ae84aea338dbc6cd10f4d135e4b717cdd1f Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Date: Mon, 28 Jun 2021 23:38:36 +0200 Subject: Latest package, javadoc and jacoco --- log/spoteezer.log | 6 +- src/main/java/musichub/util/Policy.java | 50 +-- .../classes/musichub/business/AudioElement.class | Bin 5422 -> 5594 bytes target/classes/musichub/business/MusicHub.class | Bin 13297 -> 13299 bytes .../classes/musichub/business/SortByAuthor.class | Bin 901 -> 901 bytes target/classes/musichub/business/SortByDate.class | Bin 854 -> 854 bytes target/classes/musichub/business/SortByGenre.class | Bin 858 -> 858 bytes target/classes/musichub/main/Main.class | Bin 11373 -> 12193 bytes target/classes/musichub/util/Policy.class | Bin 10860 -> 2690 bytes target/jacoco.exec | Bin 45918 -> 107422 bytes target/maven-javadoc-plugin-stale-data.txt | 39 +- target/original-spoteezer-0.1.0.jar | Bin 39074 -> 36814 bytes target/site/apidocs/allclasses-index.html | 14 +- target/site/apidocs/allpackages-index.html | 4 +- target/site/apidocs/help-doc.html | 4 +- target/site/apidocs/index-all.html | 26 +- target/site/apidocs/index.html | 4 +- target/site/apidocs/member-search-index.js | 2 +- target/site/apidocs/musichub/business/Album.html | 4 +- .../site/apidocs/musichub/business/AudioBook.html | 4 +- .../apidocs/musichub/business/AudioElement.html | 4 +- .../site/apidocs/musichub/business/Category.html | 4 +- target/site/apidocs/musichub/business/Genre.html | 4 +- .../site/apidocs/musichub/business/Language.html | 4 +- .../site/apidocs/musichub/business/MusicHub.html | 63 ++- .../musichub/business/NoAlbumFoundException.html | 4 +- .../musichub/business/NoElementFoundException.html | 4 +- .../business/NoPlayListFoundException.html | 4 +- .../site/apidocs/musichub/business/PlayList.html | 4 +- target/site/apidocs/musichub/business/Song.html | 4 +- .../apidocs/musichub/business/class-use/Album.html | 4 +- .../musichub/business/class-use/AudioBook.html | 4 +- .../musichub/business/class-use/AudioElement.html | 9 +- .../musichub/business/class-use/Category.html | 4 +- .../apidocs/musichub/business/class-use/Genre.html | 4 +- .../musichub/business/class-use/Language.html | 4 +- .../musichub/business/class-use/MusicHub.html | 4 +- .../business/class-use/NoAlbumFoundException.html | 23 +- .../class-use/NoElementFoundException.html | 7 +- .../class-use/NoPlayListFoundException.html | 9 +- .../musichub/business/class-use/PlayList.html | 4 +- .../apidocs/musichub/business/class-use/Song.html | 4 +- .../apidocs/musichub/business/package-summary.html | 4 +- .../apidocs/musichub/business/package-tree.html | 4 +- .../apidocs/musichub/business/package-use.html | 17 +- target/site/apidocs/musichub/main/Main.html | 8 +- .../site/apidocs/musichub/main/class-use/Main.html | 4 +- .../apidocs/musichub/main/package-summary.html | 4 +- .../site/apidocs/musichub/main/package-tree.html | 4 +- target/site/apidocs/musichub/main/package-use.html | 4 +- target/site/apidocs/musichub/util/LogHandler.html | 4 +- .../site/apidocs/musichub/util/PathValidation.html | 4 +- target/site/apidocs/musichub/util/Policy.html | 183 ++++++++ target/site/apidocs/musichub/util/XMLHandler.html | 4 +- .../musichub/util/class-use/LogHandler.html | 4 +- .../musichub/util/class-use/PathValidation.html | 4 +- .../apidocs/musichub/util/class-use/Policy.html | 65 +++ .../musichub/util/class-use/XMLHandler.html | 4 +- .../apidocs/musichub/util/package-summary.html | 12 +- .../site/apidocs/musichub/util/package-tree.html | 5 +- target/site/apidocs/musichub/util/package-use.html | 4 +- target/site/apidocs/overview-summary.html | 4 +- target/site/apidocs/overview-tree.html | 5 +- target/site/apidocs/serialized-form.html | 4 +- target/site/apidocs/type-search-index.js | 2 +- target/site/jacoco/index.html | 2 +- target/site/jacoco/jacoco-sessions.html | 2 +- target/site/jacoco/jacoco.csv | 8 +- target/site/jacoco/jacoco.xml | 2 +- .../jacoco/musichub.business/AudioElement.html | 2 +- .../musichub.business/AudioElement.java.html | 162 +++---- target/site/jacoco/musichub.business/MusicHub.html | 2 +- .../jacoco/musichub.business/MusicHub.java.html | 482 +++++++++++---------- .../jacoco/musichub.business/SortByAuthor.html | 2 +- .../site/jacoco/musichub.business/SortByDate.html | 2 +- .../site/jacoco/musichub.business/SortByGenre.html | 2 +- target/site/jacoco/musichub.business/index.html | 2 +- .../jacoco/musichub.business/index.source.html | 2 +- target/site/jacoco/musichub.main/Main.html | 2 +- target/site/jacoco/musichub.main/Main.java.html | 429 +++++++++--------- target/site/jacoco/musichub.main/index.html | 2 +- target/site/jacoco/musichub.main/index.source.html | 2 +- target/site/jacoco/musichub.util/Policy.html | 2 +- target/site/jacoco/musichub.util/Policy.java.html | 143 ++---- target/site/jacoco/musichub.util/index.html | 2 +- target/site/jacoco/musichub.util/index.source.html | 2 +- target/spoteezer-0.1.0-shaded.jar | Bin 374992 -> 372732 bytes target/spoteezer-0.1.0.jar | Bin 374992 -> 372732 bytes .../TEST-musichub.business.CategoryTest.xml | 4 +- .../TEST-musichub.business.LanguageTest.xml | 4 +- .../TEST-musichub.business.PlayListTest.xml | 8 +- .../TEST-musichub.business.SongTest.xml | 10 +- .../TEST-musichub.util.LogHandlerTest.xml | 12 +- .../TEST-musichub.util.PathValidationTest.xml | 6 +- .../TEST-musichub.util.XMLHandlerTest.xml | 8 +- .../musichub.business.PlayListTest.txt | 2 +- .../musichub.business.SongTest.txt | 2 +- .../musichub.util.LogHandlerTest.txt | 2 +- .../musichub.util.PathValidationTest.txt | 2 +- .../musichub.util.XMLHandlerTest.txt | 2 +- 100 files changed, 1192 insertions(+), 819 deletions(-) create mode 100644 target/site/apidocs/musichub/util/Policy.html create mode 100644 target/site/apidocs/musichub/util/class-use/Policy.html (limited to 'target/site/jacoco/musichub.business') diff --git a/log/spoteezer.log b/log/spoteezer.log index 7904af2..51a5d09 100644 --- a/log/spoteezer.log +++ b/log/spoteezer.log @@ -41,4 +41,8 @@ [2021-06-28 20:32:31.447] INFO: Music stopped [2021-06-28 20:32:32.647] INFO: Music stopped [2021-06-28 20:32:43.836] INFO: Music started -[2021-06-28 20:32:52.768] INFO: Music stopped \ No newline at end of file +[2021-06-28 20:32:52.768] INFO: Music stopped +[2021-06-28 23:30:48.508] TEST: JUnit test +[2021-06-28 23:31:59.503] TEST: JUnit test +[2021-06-28 23:36:26.824] TEST: JUnit test +[2021-06-28 23:36:31.897] TEST: JUnit test \ No newline at end of file diff --git a/src/main/java/musichub/util/Policy.java b/src/main/java/musichub/util/Policy.java index ac067b4..01c7d20 100644 --- a/src/main/java/musichub/util/Policy.java +++ b/src/main/java/musichub/util/Policy.java @@ -32,58 +32,10 @@ public final class Policy { String termsAndConditions = """ Terms and Conditions - In using this website you are deemed to have read and agreed to the following terms and conditions: - - The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and any or all Agreements: "Client", “You” and “Your” refers to you, the person accessing this website and accepting the Company’s terms and conditions. "The Company", “Ourselves”, “We” and "Us", refers to our Company. “Party”, “Parties”, or “Us”, refers to both the Client and ourselves, or either the Client or ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner, whether by formal meetings of a fixed duration, or any other means, for the express purpose of meeting the Client’s needs in respect of provision of the Company’s stated services/products, in accordance with and subject to, prevailing English Law. Any use of the above terminology or other words in the singular, plural, capitalisation and/or he/she or they, are taken as interchangeable and therefore as referring to same. - Privacy Statement We are committed to protecting your privacy. Authorized employees within the company on a need to know basis only use any information collected from individual customers. We constantly review our systems and data to ensure the best possible service to our customers. Parliament has created specific offences for unauthorised actions against computer systems and data. We will investigate any such actions with a view to prosecuting and/or taking civil proceedings to recover damages against those responsible - - Confidentiality - We are registered under the Data Protection Act 1998 and as such, any information concerning the Client and their respective Client Records may be passed to third parties. However, Client records are regarded as confidential and therefore will not be divulged to any third party, other than if legally required to do so to the appropriate authorities. Clients have the right to request sight of, and copies of any and all Client Records we keep, on the proviso that we are given reasonable notice of such a request. Clients are requested to retain copies of any literature issued in relation to the provision of our services. Where appropriate, we shall issue Client’s with appropriate written information, handouts or copies of records as part of an agreed contract, for the benefit of both parties. - - We will not sell, share, or rent your personal information to any third party or use your e-mail address for unsolicited mail. Any emails sent by this Company will only be in connection with the provision of agreed services and products. - - - Disclaimer - Exclusions and Limitations\s - The information on this web site is provided on an "as is" basis. To the fullest extent permitted by law, this Company: - \uF0A7\texcludes all representations and warranties relating to this website and its contents or which is or may be provided by any affiliates or any other third party, including in relation to any inaccuracies or omissions in this website and/or the Company’s literature; and\s - \uF0A7\texcludes all liability for damages arising out of or in connection with your use of this website. This includes, without limitation, direct loss, loss of business or profits (whether or not the loss of such profits was foreseeable, arose in the normal course of things or you have advised this Company of the possibility of such potential loss), damage caused to your computer, computer software, systems and programs and the data thereon or any other direct or indirect, consequential and incidental damages.\s - This Company does not however exclude liability for death or personal injury caused by its negligence. The above exclusions and limitations apply only to the extent permitted by law. None of your statutory rights as a consumer are affected.\s - - - - Cancellation Policy - Minimum 24 hours’ notice of cancellation required. Notification for instance, in person, via email, mobile phone ‘text message’ and/or fax, or any other means will be accepted subject to confirmation in writing. We reserve the right to levy a £30 charge to cover any subsequent administrative expenses. - - Termination of Agreements and Refunds Policy - Both the Client and we have the right to terminate any Services Agreement for any reason, including the ending of services that are already underway. No refunds shall be offered, where a Service is deemed to have begun and is, for all intents and purposes, underway. Any monies that have been paid to us which constitute payment in respect of the provision of unused Services, shall be refunded. - - Availability\s - Unless otherwise stated, the services featured on this website are only available in France, or in relation to postings from France. All advertising is intended solely for the France market. You are solely responsible for evaluating the fitness for a particular purpose of any downloads, programs and text available through this site. Redistribution or republication of any part of this site or its content is prohibited, including such by framing or other similar or any other means, without the express written consent of the Company. The Company does not warrant that the service from this site will be uninterrupted, timely or error free, although it is provided to the best ability. By using this service you thereby indemnify this Company, its employees, agents and affiliates against any loss or damage, in whatever manner, howsoever caused. - - - Copyright Notice\s - Copyright and other relevant intellectual property rights exists on all text relating to the Company’s services and the full content of this application.\s - - Communication - We have several different e-mail addresses for different queries. These, & other contact information, can be found on our Contact Us link on our website or via Company literature or via the Company’s stated telephone, facsimile or mobile telephone numbers. - - Force Majeure - Neither party shall be liable to the other for any failure to perform any obligation under any Agreement which is due to an event beyond the control of such party including but not limited to any Act of God, terrorism, war, Political insurgence, insurrection, riot, civil unrest, act of civil or military authority, uprising, earthquake, flood or any other natural or manmade eventuality outside of our control, which causes the termination of an agreement or contract entered into, nor which could have been reasonably foreseen. Any Party affected by such event shall forthwith inform the other Party of the same and shall use all reasonable endeavours to comply with the terms and conditions of any Agreement contained herein. - - Waiver - Failure of either Party to insist upon strict performance of any provision of this or any Agreement or the failure of either Party to exercise any right or remedy to which it, he or they are entitled hereunder shall not constitute a waiver thereof and shall not cause a diminution of the obligations under this or any Agreement. No waiver of any of the provisions of this or any Agreement shall be effective unless it is expressly stated to be such and signed by both Parties. - - General - The laws of France govern these terms and conditions. By accessing this application, you consent to these terms and conditions and to the exclusive jurisdiction of the English courts in all disputes arising out of such access. If any of these terms are deemed invalid or unenforceable for any reason (including, but not limited to the exclusions and limitations set out above), then the invalid or unenforceable provision will be severed from these terms and the remaining terms will continue to apply. Failure of the Company to enforce any of the provisions set out in these Terms and Conditions and any Agreement, or failure to exercise any option to terminate, shall not be construed as waiver of such provisions and shall not affect the validity of these Terms and Conditions or of any Agreement or any part thereof, or the right thereafter to enforce each and every provision. These Terms and Conditions shall not be amended, modified, varied or supplemented except in writing and signed by duly authorised representatives of the Company. - - Notification of Changes - The Company reserves the right to change these conditions from time to time as it sees fit and your continued use of the site will signify your acceptance of any adjustment to these terms. If there are any changes to our privacy policy, we will announce that these changes have been made on our home page and on other key pages on our site. If there are any changes in how we use our site customers’ Personally Identifiable Information, notification by e-mail or postal mail will be made to those affected by this change. Any changes to our privacy policy will be posted on our web site 30 days prior to these changes taking place. You are therefore advised to re-read this statement on a regular basis - - These terms and conditions form part of the Agreement between the Client and ourselves. Your accessing of this website and/or undertaking of a booking or Agreement indicates your understanding, agreement to and acceptance, of the Disclaimer Notice and the full Terms and Conditions contained herein. Your statutory Consumer Rights are unaffected. \s + These terms and conditions form part of the Agreement between the Client and ourselves. Your accessing of this website and/or undertaking of a booking or Agreement indicates your understanding, agreement to and acceptance, of the Disclaimer Notice and the full Terms and Conditions contained herein. Your statutory Consumer Rights are unaffected. s © Company Name 2021 All Rights Reserved """; diff --git a/target/classes/musichub/business/AudioElement.class b/target/classes/musichub/business/AudioElement.class index bb0f170..f46a913 100644 Binary files a/target/classes/musichub/business/AudioElement.class and b/target/classes/musichub/business/AudioElement.class differ diff --git a/target/classes/musichub/business/MusicHub.class b/target/classes/musichub/business/MusicHub.class index 42d7480..f3ea4cc 100644 Binary files a/target/classes/musichub/business/MusicHub.class and b/target/classes/musichub/business/MusicHub.class differ diff --git a/target/classes/musichub/business/SortByAuthor.class b/target/classes/musichub/business/SortByAuthor.class index e366c32..ac4474a 100644 Binary files a/target/classes/musichub/business/SortByAuthor.class and b/target/classes/musichub/business/SortByAuthor.class differ diff --git a/target/classes/musichub/business/SortByDate.class b/target/classes/musichub/business/SortByDate.class index 9d330cb..6892059 100644 Binary files a/target/classes/musichub/business/SortByDate.class and b/target/classes/musichub/business/SortByDate.class differ diff --git a/target/classes/musichub/business/SortByGenre.class b/target/classes/musichub/business/SortByGenre.class index 512232f..7cabb3e 100644 Binary files a/target/classes/musichub/business/SortByGenre.class and b/target/classes/musichub/business/SortByGenre.class differ diff --git a/target/classes/musichub/main/Main.class b/target/classes/musichub/main/Main.class index d1f8ea2..03d8fc5 100644 Binary files a/target/classes/musichub/main/Main.class and b/target/classes/musichub/main/Main.class differ diff --git a/target/classes/musichub/util/Policy.class b/target/classes/musichub/util/Policy.class index 4bf6b23..a8c66c4 100644 Binary files a/target/classes/musichub/util/Policy.class and b/target/classes/musichub/util/Policy.class differ diff --git a/target/jacoco.exec b/target/jacoco.exec index c71133e..34e3b31 100644 Binary files a/target/jacoco.exec and b/target/jacoco.exec differ diff --git a/target/maven-javadoc-plugin-stale-data.txt b/target/maven-javadoc-plugin-stale-data.txt index 7723699..54d0d1a 100644 --- a/target/maven-javadoc-plugin-stale-data.txt +++ b/target/maven-javadoc-plugin-stale-data.txt @@ -39,28 +39,29 @@ 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/main/Main.java' 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/LogHandler.java' 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/PathValidation.java' +'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/Policy.java' 'C:/Users/SoftA/Documents/spoteezer/src/main/java/musichub/util/XMLHandler.java' C:\Users\SoftA\.m2\repository\org\junit\jupiter\junit-jupiter-api\5.0.2\junit-jupiter-api-5.0.2.jar = 1624015816799 C:\Users\SoftA\.m2\repository\org\opentest4j\opentest4j\1.0.0\opentest4j-1.0.0.jar = 1624015816785 C:\Users\SoftA\.m2\repository\org\junit\platform\junit-platform-commons\1.0.2\junit-platform-commons-1.0.2.jar = 1624015816770 C:\Users\SoftA\.m2\repository\org\junit\jupiter\junit-jupiter-engine\5.0.2\junit-jupiter-engine-5.0.2.jar = 1624015816790 C:\Users\SoftA\.m2\repository\org\junit\platform\junit-platform-engine\1.0.2\junit-platform-engine-1.0.2.jar = 1624015816783 -C:\Users\SoftA\Documents\spoteezer\src\main\java = 1624708123937 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allclasses-index.html = 1624793029572 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allpackages-index.html = 1624793029575 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\element-list = 1624793029464 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\help-doc.html = 1624793029599 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index-all.html = 1624793029596 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index.html = 1624793029553 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\jquery-ui.overrides.css = 1624793029620 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\member-search-index.js = 1624793029579 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\module-search-index.js = 1624793029576 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-summary.html = 1624793029597 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-tree.html = 1624793029548 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\package-search-index.js = 1624793029577 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\script.js = 1624793029602 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\search.js = 1624793029605 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\serialized-form.html = 1624793029489 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\stylesheet.css = 1624793029601 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\tag-search-index.js = 1624793029580 -C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\type-search-index.js = 1624793029578 \ No newline at end of file +C:\Users\SoftA\Documents\spoteezer\src\main\java = 1624912572607 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allclasses-index.html = 1624916173953 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\allpackages-index.html = 1624916173955 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\element-list = 1624916173845 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\help-doc.html = 1624916173978 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index-all.html = 1624916173975 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\index.html = 1624916173935 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\jquery-ui.overrides.css = 1624916173996 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\member-search-index.js = 1624916173958 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\module-search-index.js = 1624916173956 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-summary.html = 1624916173975 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\overview-tree.html = 1624916173932 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\package-search-index.js = 1624916173957 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\script.js = 1624916173981 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\search.js = 1624916173983 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\serialized-form.html = 1624916173866 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\stylesheet.css = 1624916173979 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\tag-search-index.js = 1624916173959 +C:\Users\SoftA\Documents\spoteezer\target\site\apidocs\type-search-index.js = 1624916173957 \ No newline at end of file diff --git a/target/original-spoteezer-0.1.0.jar b/target/original-spoteezer-0.1.0.jar index dee388f..96eb4fb 100644 Binary files a/target/original-spoteezer-0.1.0.jar and b/target/original-spoteezer-0.1.0.jar differ diff --git a/target/site/apidocs/allclasses-index.html b/target/site/apidocs/allclasses-index.html index f526bdf..46cc044 100644 --- a/target/site/apidocs/allclasses-index.html +++ b/target/site/apidocs/allclasses-index.html @@ -2,11 +2,11 @@ - + All Classes (spoteezer 0.1.0 API) - + @@ -96,10 +96,14 @@ loadScripts(document, 'script');
         
        - -
         
        - + +
        +
        Class offering methods to prompt a policy agreement form to the user.
        +
        +
         
        + +
         
        diff --git a/target/site/apidocs/allpackages-index.html b/target/site/apidocs/allpackages-index.html index 76d905a..e7eec7c 100644 --- a/target/site/apidocs/allpackages-index.html +++ b/target/site/apidocs/allpackages-index.html @@ -2,11 +2,11 @@ - + All Packages (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/help-doc.html b/target/site/apidocs/help-doc.html index 98c4397..a2dc5e0 100644 --- a/target/site/apidocs/help-doc.html +++ b/target/site/apidocs/help-doc.html @@ -2,11 +2,11 @@ - + API Help (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/index-all.html b/target/site/apidocs/index-all.html index bb29e83..4154466 100644 --- a/target/site/apidocs/index-all.html +++ b/target/site/apidocs/index-all.html @@ -2,11 +2,11 @@ - + Index (spoteezer 0.1.0 API) - + @@ -182,6 +182,14 @@ loadScripts(document, 'script');
         
        getLanguage() - Method in enum class musichub.business.Language
         
        +
        getPlayListSongs(String) - Method in class musichub.business.MusicHub
        +
        +
        Method checking the songs contained in a chosen playlist and returning them if found.
        +
        +
        getPlayListsTitles() - Method in class musichub.business.MusicHub
        +
        +
        Method getting a list of playlists
        +
        getSongs() - Method in class musichub.business.Album
         
        getSongsRandomly() - Method in class musichub.business.Album
        @@ -291,6 +299,14 @@ loadScripts(document, 'script');
         
        PLAYLISTS_FILE_PATH - Static variable in class musichub.business.MusicHub
         
        +
        Policy - Class in musichub.util
        +
        +
        Class offering methods to prompt a policy agreement form to the user.
        +
        +
        Policy() - Constructor for class musichub.util.Policy
        +
        +
        Method that just throws an AssertionError if the class is called
        +
        POP - Enum constant in enum class musichub.business.Genre
         
  • @@ -313,12 +329,18 @@ loadScripts(document, 'script');
     
    savePlayLists() - Method in class musichub.business.MusicHub
     
    +
    searchAudioElement() - Method in class musichub.business.MusicHub
    +
     
    setCategory(String) - Method in class musichub.business.AudioBook
     
    setGenre(String) - Method in class musichub.business.Song
     
    setLanguage(String) - Method in class musichub.business.AudioBook
     
    +
    showTerm() - Static method in class musichub.util.Policy
    +
    +
    Method prompting the whole policy agreement process
    +
    Song - Class in musichub.business
     
    Song(String, String, int, String, String) - Constructor for class musichub.business.Song
    diff --git a/target/site/apidocs/index.html b/target/site/apidocs/index.html index e4f188e..4b86103 100644 --- a/target/site/apidocs/index.html +++ b/target/site/apidocs/index.html @@ -2,11 +2,11 @@ - + Overview (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/member-search-index.js b/target/site/apidocs/member-search-index.js index f583be9..3f8b8cd 100644 --- a/target/site/apidocs/member-search-index.js +++ b/target/site/apidocs/member-search-index.js @@ -1 +1 @@ -memberSearchIndex = [{"p":"musichub.business","c":"MusicHub","l":"addAlbum(Album)","u":"addAlbum(musichub.business.Album)"},{"p":"musichub.business","c":"MusicHub","l":"addElement(AudioElement)","u":"addElement(musichub.business.AudioElement)"},{"p":"musichub.business","c":"PlayList","l":"addElement(UUID)","u":"addElement(java.util.UUID)"},{"p":"musichub.business","c":"MusicHub","l":"addElementToAlbum(String, String)","u":"addElementToAlbum(java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"addElementToPlayList(String, String)","u":"addElementToPlayList(java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"addPlaylist(PlayList)","u":"addPlaylist(musichub.business.PlayList)"},{"p":"musichub.business","c":"Album","l":"addSong(UUID)","u":"addSong(java.util.UUID)"},{"p":"musichub.business","c":"Album","l":"Album(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"Album","l":"Album(String, String, int, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String)"},{"p":"musichub.business","c":"Album","l":"Album(String, String, int, String, String, ArrayList)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.util.ArrayList)"},{"p":"musichub.business","c":"MusicHub","l":"ALBUMS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"albums()"},{"p":"musichub.business","c":"AudioElement","l":"artist"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(String, String, int, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(String, String, int, String, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(String, String, int, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(String, String, int, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Genre","l":"CLASSIC"},{"p":"musichub.business","c":"AudioElement","l":"content"},{"p":"musichub.util","c":"XMLHandler","l":"createXMLDocument()"},{"p":"musichub.business","c":"Album","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioBook","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioElement","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"PlayList","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"Song","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.util","c":"XMLHandler","l":"createXMLFile(Document, String)","u":"createXMLFile(org.w3c.dom.Document,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"deletePlayList(String)","u":"deletePlayList(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"DIR"},{"p":"musichub.business","c":"Category","l":"DOCUMENTARY"},{"p":"musichub.business","c":"MusicHub","l":"ELEMENTS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"elements()"},{"p":"musichub.business","c":"Language","l":"ENGLISH"},{"p":"musichub.business","c":"Language","l":"FRENCH"},{"p":"musichub.business","c":"Language","l":"GERMAN"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumSongs(String)","u":"getAlbumSongs(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumSongsSortedByGenre(String)","u":"getAlbumSongsSortedByGenre(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumsTitlesSortedByDate()"},{"p":"musichub.business","c":"AudioElement","l":"getArtist()"},{"p":"musichub.business","c":"MusicHub","l":"getAudiobooksTitlesSortedByAuthor()"},{"p":"musichub.business","c":"MusicHub","l":"getAudioElement(List, String)","u":"getAudioElement(java.util.List,java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"getCategory()"},{"p":"musichub.business","c":"Category","l":"getCategory()"},{"p":"musichub.business","c":"Album","l":"getDate()"},{"p":"musichub.business","c":"PlayList","l":"getElements()"},{"p":"musichub.business","c":"Genre","l":"getGenre()"},{"p":"musichub.business","c":"Song","l":"getGenre()"},{"p":"musichub.business","c":"AudioBook","l":"getLanguage()"},{"p":"musichub.business","c":"Language","l":"getLanguage()"},{"p":"musichub.business","c":"Album","l":"getSongs()"},{"p":"musichub.business","c":"Album","l":"getSongsRandomly()"},{"p":"musichub.business","c":"Album","l":"getTitle()"},{"p":"musichub.business","c":"AudioElement","l":"getTitle()"},{"p":"musichub.business","c":"PlayList","l":"getTitle()"},{"p":"musichub.business","c":"AudioElement","l":"getUUID()"},{"p":"musichub.business","c":"Genre","l":"HIPHOP"},{"p":"musichub.util","c":"PathValidation","l":"isPathValid(String)","u":"isPathValid(java.lang.String)"},{"p":"musichub.business","c":"Language","l":"ITALIAN"},{"p":"musichub.business","c":"Genre","l":"JAZZ"},{"p":"musichub.business","c":"AudioElement","l":"lengthInSeconds"},{"p":"musichub.util","c":"LogHandler","l":"LogHandler()","u":"%3Cinit%3E()"},{"p":"musichub.main","c":"Main","l":"Main()","u":"%3Cinit%3E()"},{"p":"musichub.main","c":"Main","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"musichub.business","c":"AudioElement","l":"manageAudioElement()"},{"p":"musichub.business","c":"MusicHub","l":"MusicHub()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"NoAlbumFoundException","l":"NoAlbumFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"NoElementFoundException","l":"NoElementFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"NoPlayListFoundException","l":"NoPlayListFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"Category","l":"NOVEL"},{"p":"musichub.util","c":"XMLHandler","l":"parseXMLFile(String)","u":"parseXMLFile(java.lang.String)"},{"p":"musichub.util","c":"PathValidation","l":"PathValidation()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"PlayList","l":"PlayList(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"PlayList","l":"PlayList(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"PlayList","l":"PlayList(String, String, ArrayList)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.util.ArrayList)"},{"p":"musichub.business","c":"MusicHub","l":"PLAYLISTS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"playlists()"},{"p":"musichub.business","c":"Genre","l":"POP"},{"p":"musichub.business","c":"Genre","l":"RAP"},{"p":"musichub.util","c":"LogHandler","l":"read()"},{"p":"musichub.business","c":"Genre","l":"ROCK"},{"p":"musichub.business","c":"MusicHub","l":"saveAlbums()"},{"p":"musichub.business","c":"MusicHub","l":"saveElements()"},{"p":"musichub.business","c":"MusicHub","l":"savePlayLists()"},{"p":"musichub.business","c":"AudioBook","l":"setCategory(String)","u":"setCategory(java.lang.String)"},{"p":"musichub.business","c":"Song","l":"setGenre(String)","u":"setGenre(java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"setLanguage(String)","u":"setLanguage(java.lang.String)"},{"p":"musichub.business","c":"Song","l":"Song(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"Song","l":"Song(String, String, int, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Song","l":"Song(String, String, int, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Language","l":"SPANISH"},{"p":"musichub.business","c":"Category","l":"SPEECH"},{"p":"musichub.business","c":"Category","l":"THEATER"},{"p":"musichub.business","c":"AudioElement","l":"title"},{"p":"musichub.business","c":"AudioBook","l":"toString()"},{"p":"musichub.business","c":"AudioElement","l":"toString()"},{"p":"musichub.business","c":"Song","l":"toString()"},{"p":"musichub.business","c":"AudioElement","l":"uuid"},{"p":"musichub.business","c":"Category","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Genre","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Language","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Category","l":"values()"},{"p":"musichub.business","c":"Genre","l":"values()"},{"p":"musichub.business","c":"Language","l":"values()"},{"p":"musichub.util","c":"LogHandler","l":"write(String, String)","u":"write(java.lang.String,java.lang.String)"},{"p":"musichub.util","c":"XMLHandler","l":"XMLHandler()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"Category","l":"YOUTH"}];updateSearchResults(); \ No newline at end of file +memberSearchIndex = [{"p":"musichub.business","c":"MusicHub","l":"addAlbum(Album)","u":"addAlbum(musichub.business.Album)"},{"p":"musichub.business","c":"MusicHub","l":"addElement(AudioElement)","u":"addElement(musichub.business.AudioElement)"},{"p":"musichub.business","c":"PlayList","l":"addElement(UUID)","u":"addElement(java.util.UUID)"},{"p":"musichub.business","c":"MusicHub","l":"addElementToAlbum(String, String)","u":"addElementToAlbum(java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"addElementToPlayList(String, String)","u":"addElementToPlayList(java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"addPlaylist(PlayList)","u":"addPlaylist(musichub.business.PlayList)"},{"p":"musichub.business","c":"Album","l":"addSong(UUID)","u":"addSong(java.util.UUID)"},{"p":"musichub.business","c":"Album","l":"Album(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"Album","l":"Album(String, String, int, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String)"},{"p":"musichub.business","c":"Album","l":"Album(String, String, int, String, String, ArrayList)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.util.ArrayList)"},{"p":"musichub.business","c":"MusicHub","l":"ALBUMS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"albums()"},{"p":"musichub.business","c":"AudioElement","l":"artist"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(String, String, int, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"AudioBook(String, String, int, String, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(String, String, int, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String)"},{"p":"musichub.business","c":"AudioElement","l":"AudioElement(String, String, int, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Genre","l":"CLASSIC"},{"p":"musichub.business","c":"AudioElement","l":"content"},{"p":"musichub.util","c":"XMLHandler","l":"createXMLDocument()"},{"p":"musichub.business","c":"Album","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioBook","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"AudioElement","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"PlayList","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.business","c":"Song","l":"createXMLElement(Document, Element)","u":"createXMLElement(org.w3c.dom.Document,org.w3c.dom.Element)"},{"p":"musichub.util","c":"XMLHandler","l":"createXMLFile(Document, String)","u":"createXMLFile(org.w3c.dom.Document,java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"deletePlayList(String)","u":"deletePlayList(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"DIR"},{"p":"musichub.business","c":"Category","l":"DOCUMENTARY"},{"p":"musichub.business","c":"MusicHub","l":"ELEMENTS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"elements()"},{"p":"musichub.business","c":"Language","l":"ENGLISH"},{"p":"musichub.business","c":"Language","l":"FRENCH"},{"p":"musichub.business","c":"Language","l":"GERMAN"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumSongs(String)","u":"getAlbumSongs(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumSongsSortedByGenre(String)","u":"getAlbumSongsSortedByGenre(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"getAlbumsTitlesSortedByDate()"},{"p":"musichub.business","c":"AudioElement","l":"getArtist()"},{"p":"musichub.business","c":"MusicHub","l":"getAudiobooksTitlesSortedByAuthor()"},{"p":"musichub.business","c":"MusicHub","l":"getAudioElement(List, String)","u":"getAudioElement(java.util.List,java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"getCategory()"},{"p":"musichub.business","c":"Category","l":"getCategory()"},{"p":"musichub.business","c":"Album","l":"getDate()"},{"p":"musichub.business","c":"PlayList","l":"getElements()"},{"p":"musichub.business","c":"Genre","l":"getGenre()"},{"p":"musichub.business","c":"Song","l":"getGenre()"},{"p":"musichub.business","c":"AudioBook","l":"getLanguage()"},{"p":"musichub.business","c":"Language","l":"getLanguage()"},{"p":"musichub.business","c":"MusicHub","l":"getPlayListSongs(String)","u":"getPlayListSongs(java.lang.String)"},{"p":"musichub.business","c":"MusicHub","l":"getPlayListsTitles()"},{"p":"musichub.business","c":"Album","l":"getSongs()"},{"p":"musichub.business","c":"Album","l":"getSongsRandomly()"},{"p":"musichub.business","c":"Album","l":"getTitle()"},{"p":"musichub.business","c":"AudioElement","l":"getTitle()"},{"p":"musichub.business","c":"PlayList","l":"getTitle()"},{"p":"musichub.business","c":"AudioElement","l":"getUUID()"},{"p":"musichub.business","c":"Genre","l":"HIPHOP"},{"p":"musichub.util","c":"PathValidation","l":"isPathValid(String)","u":"isPathValid(java.lang.String)"},{"p":"musichub.business","c":"Language","l":"ITALIAN"},{"p":"musichub.business","c":"Genre","l":"JAZZ"},{"p":"musichub.business","c":"AudioElement","l":"lengthInSeconds"},{"p":"musichub.util","c":"LogHandler","l":"LogHandler()","u":"%3Cinit%3E()"},{"p":"musichub.main","c":"Main","l":"Main()","u":"%3Cinit%3E()"},{"p":"musichub.main","c":"Main","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"musichub.business","c":"AudioElement","l":"manageAudioElement()"},{"p":"musichub.business","c":"MusicHub","l":"MusicHub()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"NoAlbumFoundException","l":"NoAlbumFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"NoElementFoundException","l":"NoElementFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"NoPlayListFoundException","l":"NoPlayListFoundException(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"Category","l":"NOVEL"},{"p":"musichub.util","c":"XMLHandler","l":"parseXMLFile(String)","u":"parseXMLFile(java.lang.String)"},{"p":"musichub.util","c":"PathValidation","l":"PathValidation()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"PlayList","l":"PlayList(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"PlayList","l":"PlayList(String)","u":"%3Cinit%3E(java.lang.String)"},{"p":"musichub.business","c":"PlayList","l":"PlayList(String, String, ArrayList)","u":"%3Cinit%3E(java.lang.String,java.lang.String,java.util.ArrayList)"},{"p":"musichub.business","c":"MusicHub","l":"PLAYLISTS_FILE_PATH"},{"p":"musichub.business","c":"MusicHub","l":"playlists()"},{"p":"musichub.util","c":"Policy","l":"Policy()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"Genre","l":"POP"},{"p":"musichub.business","c":"Genre","l":"RAP"},{"p":"musichub.util","c":"LogHandler","l":"read()"},{"p":"musichub.business","c":"Genre","l":"ROCK"},{"p":"musichub.business","c":"MusicHub","l":"saveAlbums()"},{"p":"musichub.business","c":"MusicHub","l":"saveElements()"},{"p":"musichub.business","c":"MusicHub","l":"savePlayLists()"},{"p":"musichub.business","c":"MusicHub","l":"searchAudioElement()"},{"p":"musichub.business","c":"AudioBook","l":"setCategory(String)","u":"setCategory(java.lang.String)"},{"p":"musichub.business","c":"Song","l":"setGenre(String)","u":"setGenre(java.lang.String)"},{"p":"musichub.business","c":"AudioBook","l":"setLanguage(String)","u":"setLanguage(java.lang.String)"},{"p":"musichub.util","c":"Policy","l":"showTerm()"},{"p":"musichub.business","c":"Song","l":"Song(Element)","u":"%3Cinit%3E(org.w3c.dom.Element)"},{"p":"musichub.business","c":"Song","l":"Song(String, String, int, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Song","l":"Song(String, String, int, String, String, String)","u":"%3Cinit%3E(java.lang.String,java.lang.String,int,java.lang.String,java.lang.String,java.lang.String)"},{"p":"musichub.business","c":"Language","l":"SPANISH"},{"p":"musichub.business","c":"Category","l":"SPEECH"},{"p":"musichub.business","c":"Category","l":"THEATER"},{"p":"musichub.business","c":"AudioElement","l":"title"},{"p":"musichub.business","c":"AudioBook","l":"toString()"},{"p":"musichub.business","c":"AudioElement","l":"toString()"},{"p":"musichub.business","c":"Song","l":"toString()"},{"p":"musichub.business","c":"AudioElement","l":"uuid"},{"p":"musichub.business","c":"Category","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Genre","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Language","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"musichub.business","c":"Category","l":"values()"},{"p":"musichub.business","c":"Genre","l":"values()"},{"p":"musichub.business","c":"Language","l":"values()"},{"p":"musichub.util","c":"LogHandler","l":"write(String, String)","u":"write(java.lang.String,java.lang.String)"},{"p":"musichub.util","c":"XMLHandler","l":"XMLHandler()","u":"%3Cinit%3E()"},{"p":"musichub.business","c":"Category","l":"YOUTH"}];updateSearchResults(); \ No newline at end of file diff --git a/target/site/apidocs/musichub/business/Album.html b/target/site/apidocs/musichub/business/Album.html index 1218e4a..05e3672 100644 --- a/target/site/apidocs/musichub/business/Album.html +++ b/target/site/apidocs/musichub/business/Album.html @@ -2,11 +2,11 @@ - + Album (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/AudioBook.html b/target/site/apidocs/musichub/business/AudioBook.html index 2947784..90aca57 100644 --- a/target/site/apidocs/musichub/business/AudioBook.html +++ b/target/site/apidocs/musichub/business/AudioBook.html @@ -2,11 +2,11 @@ - + AudioBook (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/AudioElement.html b/target/site/apidocs/musichub/business/AudioElement.html index 952130b..fc48e95 100644 --- a/target/site/apidocs/musichub/business/AudioElement.html +++ b/target/site/apidocs/musichub/business/AudioElement.html @@ -2,11 +2,11 @@ - + AudioElement (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/Category.html b/target/site/apidocs/musichub/business/Category.html index efdb113..81893ae 100644 --- a/target/site/apidocs/musichub/business/Category.html +++ b/target/site/apidocs/musichub/business/Category.html @@ -2,11 +2,11 @@ - + Category (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/Genre.html b/target/site/apidocs/musichub/business/Genre.html index fb61007..47e52f0 100644 --- a/target/site/apidocs/musichub/business/Genre.html +++ b/target/site/apidocs/musichub/business/Genre.html @@ -2,11 +2,11 @@ - + Genre (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/Language.html b/target/site/apidocs/musichub/business/Language.html index de6d02c..9bf8df2 100644 --- a/target/site/apidocs/musichub/business/Language.html +++ b/target/site/apidocs/musichub/business/Language.html @@ -2,11 +2,11 @@ - + Language (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/MusicHub.html b/target/site/apidocs/musichub/business/MusicHub.html index c9aa14b..b8a7d99 100644 --- a/target/site/apidocs/musichub/business/MusicHub.html +++ b/target/site/apidocs/musichub/business/MusicHub.html @@ -2,11 +2,11 @@ - + MusicHub (spoteezer 0.1.0 API) - + @@ -175,6 +175,16 @@ loadScripts(document, 'script');
    getAudioElement​(List<AudioElement> audios, String elementTitle)
     
    + +
    getPlayListSongs​(String playListTitle)
    +
    +
    Method checking the songs contained in a chosen playlist and returning them if found.
    +
    + + +
    +
    Method getting a list of playlists
    +
     
    @@ -187,6 +197,9 @@ loadScripts(document, 'script');
    void
     
    +
    void
    + +
     
    @@ -395,6 +408,52 @@ loadScripts(document, 'script'); +
  • +
    +

    searchAudioElement

    + +
    +
    Throws:
    +
    UnsupportedAudioFileException
    +
    NoAlbumFoundException
    +
    LineUnavailableException
    +
    IOException
    +
    NoElementFoundException
    +
    +
    +
  • +
  • +
    +

    getPlayListsTitles

    +
    public String getPlayListsTitles()
    +
    Method getting a list of playlists
    +
    +
    Returns:
    +
    a list of playlist titles
    +
    +
    +
  • +
  • +
    +

    getPlayListSongs

    +
    public List<AudioElement> getPlayListSongs(String playListTitle) + throws NoPlayListFoundException
    +
    Method checking the songs contained in a chosen playlist and returning them if found.
    +
    +
    Parameters:
    +
    playListTitle - the title of a (chosen) playlist
    +
    Returns:
    +
    a list of songs from a playlist
    +
    Throws:
    +
    NoPlayListFoundException - if the chosen playlist doesn't exist
    +
    +
    +
  • diff --git a/target/site/apidocs/musichub/business/NoAlbumFoundException.html b/target/site/apidocs/musichub/business/NoAlbumFoundException.html index 8cd2100..074411d 100644 --- a/target/site/apidocs/musichub/business/NoAlbumFoundException.html +++ b/target/site/apidocs/musichub/business/NoAlbumFoundException.html @@ -2,11 +2,11 @@ - + NoAlbumFoundException (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/NoElementFoundException.html b/target/site/apidocs/musichub/business/NoElementFoundException.html index 41fa7a8..59f09c8 100644 --- a/target/site/apidocs/musichub/business/NoElementFoundException.html +++ b/target/site/apidocs/musichub/business/NoElementFoundException.html @@ -2,11 +2,11 @@ - + NoElementFoundException (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/NoPlayListFoundException.html b/target/site/apidocs/musichub/business/NoPlayListFoundException.html index 65ad902..c5cadd8 100644 --- a/target/site/apidocs/musichub/business/NoPlayListFoundException.html +++ b/target/site/apidocs/musichub/business/NoPlayListFoundException.html @@ -2,11 +2,11 @@ - + NoPlayListFoundException (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/PlayList.html b/target/site/apidocs/musichub/business/PlayList.html index a0bd02b..e61a1f5 100644 --- a/target/site/apidocs/musichub/business/PlayList.html +++ b/target/site/apidocs/musichub/business/PlayList.html @@ -2,11 +2,11 @@ - + PlayList (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/Song.html b/target/site/apidocs/musichub/business/Song.html index 2550898..25364f2 100644 --- a/target/site/apidocs/musichub/business/Song.html +++ b/target/site/apidocs/musichub/business/Song.html @@ -2,11 +2,11 @@ - + Song (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/class-use/Album.html b/target/site/apidocs/musichub/business/class-use/Album.html index 846ce1e..04fb824 100644 --- a/target/site/apidocs/musichub/business/class-use/Album.html +++ b/target/site/apidocs/musichub/business/class-use/Album.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.business.Album (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/class-use/AudioBook.html b/target/site/apidocs/musichub/business/class-use/AudioBook.html index ac2d207..4563de1 100644 --- a/target/site/apidocs/musichub/business/class-use/AudioBook.html +++ b/target/site/apidocs/musichub/business/class-use/AudioBook.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.business.AudioBook (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/class-use/AudioElement.html b/target/site/apidocs/musichub/business/class-use/AudioElement.html index 6721959..a522d81 100644 --- a/target/site/apidocs/musichub/business/class-use/AudioElement.html +++ b/target/site/apidocs/musichub/business/class-use/AudioElement.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.business.AudioElement (spoteezer 0.1.0 API) - + @@ -89,6 +89,11 @@ loadScripts(document, 'script');
    MusicHub.getAlbumSongs​(String albumTitle)
     
    + +
    MusicHub.getPlayListSongs​(String playListTitle)
    +
    +
    Method checking the songs contained in a chosen playlist and returning them if found.
    +
    Methods in musichub.business with parameters of type AudioElement
    diff --git a/target/site/apidocs/musichub/business/class-use/Category.html b/target/site/apidocs/musichub/business/class-use/Category.html index bf72525..a505a01 100644 --- a/target/site/apidocs/musichub/business/class-use/Category.html +++ b/target/site/apidocs/musichub/business/class-use/Category.html @@ -2,11 +2,11 @@ - + Uses of Enum Class musichub.business.Category (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/class-use/Genre.html b/target/site/apidocs/musichub/business/class-use/Genre.html index 45e4285..3b28e4b 100644 --- a/target/site/apidocs/musichub/business/class-use/Genre.html +++ b/target/site/apidocs/musichub/business/class-use/Genre.html @@ -2,11 +2,11 @@ - + Uses of Enum Class musichub.business.Genre (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/class-use/Language.html b/target/site/apidocs/musichub/business/class-use/Language.html index 2641403..8eef0cd 100644 --- a/target/site/apidocs/musichub/business/class-use/Language.html +++ b/target/site/apidocs/musichub/business/class-use/Language.html @@ -2,11 +2,11 @@ - + Uses of Enum Class musichub.business.Language (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/class-use/MusicHub.html b/target/site/apidocs/musichub/business/class-use/MusicHub.html index 6001814..66f825c 100644 --- a/target/site/apidocs/musichub/business/class-use/MusicHub.html +++ b/target/site/apidocs/musichub/business/class-use/MusicHub.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.business.MusicHub (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/class-use/NoAlbumFoundException.html b/target/site/apidocs/musichub/business/class-use/NoAlbumFoundException.html index ec4794b..4afe620 100644 --- a/target/site/apidocs/musichub/business/class-use/NoAlbumFoundException.html +++ b/target/site/apidocs/musichub/business/class-use/NoAlbumFoundException.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.business.NoAlbumFoundException (spoteezer 0.1.0 API) - + @@ -60,6 +60,8 @@ loadScripts(document, 'script');
    Description
     
    + +
     
    + +
  • +
    +

    Uses of NoAlbumFoundException in musichub.main

    +
    Methods in musichub.main that throw NoAlbumFoundException
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    +
    static void
    +
    Main.main​(String[] args)
    +
     
  • diff --git a/target/site/apidocs/musichub/business/class-use/NoElementFoundException.html b/target/site/apidocs/musichub/business/class-use/NoElementFoundException.html index 438ea7e..5a15a6e 100644 --- a/target/site/apidocs/musichub/business/class-use/NoElementFoundException.html +++ b/target/site/apidocs/musichub/business/class-use/NoElementFoundException.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.business.NoElementFoundException (spoteezer 0.1.0 API) - + @@ -79,6 +79,9 @@ loadScripts(document, 'script');
    MusicHub.addElementToPlayList​(String elementTitle, String playListTitle)
     
    +
    void
    + +
     
    diff --git a/target/site/apidocs/musichub/business/class-use/NoPlayListFoundException.html b/target/site/apidocs/musichub/business/class-use/NoPlayListFoundException.html index fc2e2e3..074b203 100644 --- a/target/site/apidocs/musichub/business/class-use/NoPlayListFoundException.html +++ b/target/site/apidocs/musichub/business/class-use/NoPlayListFoundException.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.business.NoPlayListFoundException (spoteezer 0.1.0 API) - + @@ -78,6 +78,11 @@ loadScripts(document, 'script');
    void
    MusicHub.deletePlayList​(String playListTitle)
     
    + +
    MusicHub.getPlayListSongs​(String playListTitle)
    +
    +
    Method checking the songs contained in a chosen playlist and returning them if found.
    +
    diff --git a/target/site/apidocs/musichub/business/class-use/PlayList.html b/target/site/apidocs/musichub/business/class-use/PlayList.html index bda55e0..d482eb3 100644 --- a/target/site/apidocs/musichub/business/class-use/PlayList.html +++ b/target/site/apidocs/musichub/business/class-use/PlayList.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.business.PlayList (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/class-use/Song.html b/target/site/apidocs/musichub/business/class-use/Song.html index 3325f6e..8989a96 100644 --- a/target/site/apidocs/musichub/business/class-use/Song.html +++ b/target/site/apidocs/musichub/business/class-use/Song.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.business.Song (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/package-summary.html b/target/site/apidocs/musichub/business/package-summary.html index 6091b4c..687fe85 100644 --- a/target/site/apidocs/musichub/business/package-summary.html +++ b/target/site/apidocs/musichub/business/package-summary.html @@ -2,11 +2,11 @@ - + musichub.business (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/package-tree.html b/target/site/apidocs/musichub/business/package-tree.html index 043e924..0577411 100644 --- a/target/site/apidocs/musichub/business/package-tree.html +++ b/target/site/apidocs/musichub/business/package-tree.html @@ -2,11 +2,11 @@ - + musichub.business Class Hierarchy (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/business/package-use.html b/target/site/apidocs/musichub/business/package-use.html index 9e21dc4..fb82b92 100644 --- a/target/site/apidocs/musichub/business/package-use.html +++ b/target/site/apidocs/musichub/business/package-use.html @@ -2,11 +2,11 @@ - + Uses of Package musichub.business (spoteezer 0.1.0 API) - + @@ -60,6 +60,8 @@ loadScripts(document, 'script');
    Description
     
    + +
     
      @@ -92,6 +94,17 @@ loadScripts(document, 'script');
    +
  • +
    +
    Classes in musichub.business used by musichub.main
    +
    +
    Class
    +
    Description
    + +
     
    +
    +
    +
  • diff --git a/target/site/apidocs/musichub/main/Main.html b/target/site/apidocs/musichub/main/Main.html index 689df96..8e747c6 100644 --- a/target/site/apidocs/musichub/main/Main.html +++ b/target/site/apidocs/musichub/main/Main.html @@ -2,11 +2,11 @@ - + Main (spoteezer 0.1.0 API) - + @@ -149,12 +149,14 @@ loadScripts(document, 'script');
    public static void main(String[] args) throws UnsupportedAudioFileException, IOException, -LineUnavailableException
    +LineUnavailableException, +NoAlbumFoundException
    Throws:
    UnsupportedAudioFileException
    IOException
    LineUnavailableException
    +
    NoAlbumFoundException
    diff --git a/target/site/apidocs/musichub/main/class-use/Main.html b/target/site/apidocs/musichub/main/class-use/Main.html index 3510a5a..135db94 100644 --- a/target/site/apidocs/musichub/main/class-use/Main.html +++ b/target/site/apidocs/musichub/main/class-use/Main.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.main.Main (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/main/package-summary.html b/target/site/apidocs/musichub/main/package-summary.html index 3173f29..3e7843a 100644 --- a/target/site/apidocs/musichub/main/package-summary.html +++ b/target/site/apidocs/musichub/main/package-summary.html @@ -2,11 +2,11 @@ - + musichub.main (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/main/package-tree.html b/target/site/apidocs/musichub/main/package-tree.html index 28af7d3..b315db7 100644 --- a/target/site/apidocs/musichub/main/package-tree.html +++ b/target/site/apidocs/musichub/main/package-tree.html @@ -2,11 +2,11 @@ - + musichub.main Class Hierarchy (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/main/package-use.html b/target/site/apidocs/musichub/main/package-use.html index 91940dd..e258c4a 100644 --- a/target/site/apidocs/musichub/main/package-use.html +++ b/target/site/apidocs/musichub/main/package-use.html @@ -2,11 +2,11 @@ - + Uses of Package musichub.main (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/util/LogHandler.html b/target/site/apidocs/musichub/util/LogHandler.html index ef83ebd..fce5e8d 100644 --- a/target/site/apidocs/musichub/util/LogHandler.html +++ b/target/site/apidocs/musichub/util/LogHandler.html @@ -2,11 +2,11 @@ - + LogHandler (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/util/PathValidation.html b/target/site/apidocs/musichub/util/PathValidation.html index fefddad..06d60fe 100644 --- a/target/site/apidocs/musichub/util/PathValidation.html +++ b/target/site/apidocs/musichub/util/PathValidation.html @@ -2,11 +2,11 @@ - + PathValidation (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/util/Policy.html b/target/site/apidocs/musichub/util/Policy.html new file mode 100644 index 0000000..4cb02cb --- /dev/null +++ b/target/site/apidocs/musichub/util/Policy.html @@ -0,0 +1,183 @@ + + + + + +Policy (spoteezer 0.1.0 API) + + + + + + + + + + + + + + + +
    + +
    +
    + +
    +
    Package musichub.util
    +

    Class Policy

    +
    +
    java.lang.Object +
    musichub.util.Policy
    +
    +
    +
    +
    public final class Policy +extends Object
    +
    Class offering methods to prompt a policy agreement form to the user.
    +
    +
    Version:
    +
    1.0
    +
    Author:
    +
    Anthony BOULANT
    +
    +
    +
    +
      + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Constructor
      +
      Description
      + +
      +
      Method that just throws an AssertionError if the class is called
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      +
      static void
      + +
      +
      Method prompting the whole policy agreement process
      +
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Policy

        +
        public Policy()
        +
        Method that just throws an AssertionError if the class is called
        +
        +
        Throws:
        +
        AssertionError - you can't instantiate this class
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        showTerm

        +
        public static void showTerm()
        +
        Method prompting the whole policy agreement process
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + +
    +
    +
    + + diff --git a/target/site/apidocs/musichub/util/XMLHandler.html b/target/site/apidocs/musichub/util/XMLHandler.html index 7236da3..b2d5bac 100644 --- a/target/site/apidocs/musichub/util/XMLHandler.html +++ b/target/site/apidocs/musichub/util/XMLHandler.html @@ -2,11 +2,11 @@ - + XMLHandler (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/util/class-use/LogHandler.html b/target/site/apidocs/musichub/util/class-use/LogHandler.html index 990f0fd..506f390 100644 --- a/target/site/apidocs/musichub/util/class-use/LogHandler.html +++ b/target/site/apidocs/musichub/util/class-use/LogHandler.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.util.LogHandler (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/util/class-use/PathValidation.html b/target/site/apidocs/musichub/util/class-use/PathValidation.html index 220526c..e41b131 100644 --- a/target/site/apidocs/musichub/util/class-use/PathValidation.html +++ b/target/site/apidocs/musichub/util/class-use/PathValidation.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.util.PathValidation (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/util/class-use/Policy.html b/target/site/apidocs/musichub/util/class-use/Policy.html new file mode 100644 index 0000000..ea71f0b --- /dev/null +++ b/target/site/apidocs/musichub/util/class-use/Policy.html @@ -0,0 +1,65 @@ + + + + + +Uses of Class musichub.util.Policy (spoteezer 0.1.0 API) + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    musichub.util.Policy

    +
    +No usage of musichub.util.Policy
    +
    +
    + +
    +
    +
    + + diff --git a/target/site/apidocs/musichub/util/class-use/XMLHandler.html b/target/site/apidocs/musichub/util/class-use/XMLHandler.html index 7a70382..c373d88 100644 --- a/target/site/apidocs/musichub/util/class-use/XMLHandler.html +++ b/target/site/apidocs/musichub/util/class-use/XMLHandler.html @@ -2,11 +2,11 @@ - + Uses of Class musichub.util.XMLHandler (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/musichub/util/package-summary.html b/target/site/apidocs/musichub/util/package-summary.html index f86937c..90a4118 100644 --- a/target/site/apidocs/musichub/util/package-summary.html +++ b/target/site/apidocs/musichub/util/package-summary.html @@ -2,11 +2,11 @@ - + musichub.util (spoteezer 0.1.0 API) - + @@ -71,8 +71,12 @@ loadScripts(document, 'script');
    Class offering a path validation method.
    - -
     
    + +
    +
    Class offering methods to prompt a policy agreement form to the user.
    +
    + +
     
    diff --git a/target/site/apidocs/musichub/util/package-tree.html b/target/site/apidocs/musichub/util/package-tree.html index ffec452..3975c7d 100644 --- a/target/site/apidocs/musichub/util/package-tree.html +++ b/target/site/apidocs/musichub/util/package-tree.html @@ -2,11 +2,11 @@ - + musichub.util Class Hierarchy (spoteezer 0.1.0 API) - + @@ -65,6 +65,7 @@ loadScripts(document, 'script'); diff --git a/target/site/apidocs/musichub/util/package-use.html b/target/site/apidocs/musichub/util/package-use.html index 5b04593..29e9afd 100644 --- a/target/site/apidocs/musichub/util/package-use.html +++ b/target/site/apidocs/musichub/util/package-use.html @@ -2,11 +2,11 @@ - + Uses of Package musichub.util (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/overview-summary.html b/target/site/apidocs/overview-summary.html index 4cc33e6..e04109c 100644 --- a/target/site/apidocs/overview-summary.html +++ b/target/site/apidocs/overview-summary.html @@ -2,11 +2,11 @@ - + spoteezer 0.1.0 API - + diff --git a/target/site/apidocs/overview-tree.html b/target/site/apidocs/overview-tree.html index cdf90ae..fa638f1 100644 --- a/target/site/apidocs/overview-tree.html +++ b/target/site/apidocs/overview-tree.html @@ -2,11 +2,11 @@ - + Class Hierarchy (spoteezer 0.1.0 API) - + @@ -77,6 +77,7 @@ loadScripts(document, 'script');
  • musichub.business.MusicHub
  • musichub.util.PathValidation
  • musichub.business.PlayList
  • +
  • musichub.util.Policy
  • java.lang.Throwable (implements java.io.Serializable)
    • java.lang.Exception diff --git a/target/site/apidocs/serialized-form.html b/target/site/apidocs/serialized-form.html index 4f1d9d0..6403fa7 100644 --- a/target/site/apidocs/serialized-form.html +++ b/target/site/apidocs/serialized-form.html @@ -2,11 +2,11 @@ - + Serialized Form (spoteezer 0.1.0 API) - + diff --git a/target/site/apidocs/type-search-index.js b/target/site/apidocs/type-search-index.js index 26dac6f..65bf426 100644 --- a/target/site/apidocs/type-search-index.js +++ b/target/site/apidocs/type-search-index.js @@ -1 +1 @@ -typeSearchIndex = [{"p":"musichub.business","l":"Album"},{"l":"All Classes","u":"allclasses-index.html"},{"p":"musichub.business","l":"AudioBook"},{"p":"musichub.business","l":"AudioElement"},{"p":"musichub.business","l":"Category"},{"p":"musichub.business","l":"Genre"},{"p":"musichub.business","l":"Language"},{"p":"musichub.util","l":"LogHandler"},{"p":"musichub.main","l":"Main"},{"p":"musichub.business","l":"MusicHub"},{"p":"musichub.business","l":"NoAlbumFoundException"},{"p":"musichub.business","l":"NoElementFoundException"},{"p":"musichub.business","l":"NoPlayListFoundException"},{"p":"musichub.util","l":"PathValidation"},{"p":"musichub.business","l":"PlayList"},{"p":"musichub.business","l":"Song"},{"p":"musichub.util","l":"XMLHandler"}];updateSearchResults(); \ No newline at end of file +typeSearchIndex = [{"p":"musichub.business","l":"Album"},{"l":"All Classes","u":"allclasses-index.html"},{"p":"musichub.business","l":"AudioBook"},{"p":"musichub.business","l":"AudioElement"},{"p":"musichub.business","l":"Category"},{"p":"musichub.business","l":"Genre"},{"p":"musichub.business","l":"Language"},{"p":"musichub.util","l":"LogHandler"},{"p":"musichub.main","l":"Main"},{"p":"musichub.business","l":"MusicHub"},{"p":"musichub.business","l":"NoAlbumFoundException"},{"p":"musichub.business","l":"NoElementFoundException"},{"p":"musichub.business","l":"NoPlayListFoundException"},{"p":"musichub.util","l":"PathValidation"},{"p":"musichub.business","l":"PlayList"},{"p":"musichub.util","l":"Policy"},{"p":"musichub.business","l":"Song"},{"p":"musichub.util","l":"XMLHandler"}];updateSearchResults(); \ No newline at end of file diff --git a/target/site/jacoco/index.html b/target/site/jacoco/index.html index b7992f7..dc1c55c 100644 --- a/target/site/jacoco/index.html +++ b/target/site/jacoco/index.html @@ -1 +1 @@ -spoteezer

      spoteezer

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total2 167 of 2 96927 %207 of 23010 %17722661279457971020
      musichub.business1 48365130 %1601910 %1401783735135182815
      musichub.main6250 %420 %31312152153311
      musichub.util5915171 %5444 %617246631214
      \ No newline at end of file +spoteezer

      spoteezer

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total2 376 of 3 17825 %223 of 2469 %18723667285459991020
      musichub.business1 58865129 %175199 %1491873935335384815
      musichub.main7220 %430 %32322512513311
      musichub.util6615169 %5444 %617287031214
      \ No newline at end of file diff --git a/target/site/jacoco/jacoco-sessions.html b/target/site/jacoco/jacoco-sessions.html index 59fcb45..2e5066f 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-91a7872b27 juin 2021, 13:23:3927 juin 2021, 13:23:40
      DESKTOP-M4INQND-11e0a09627 juin 2021, 18:57:0227 juin 2021, 18:57:02
      DESKTOP-M4INQND-7357f01027 juin 2021, 22:23:2727 juin 2021, 22:23:27

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

      ClassId
      java.sql.Dated25610486aed3f31
      java.sql.Timestampb848522074600355
      musichub.business.AudioBookaaa13ef213e0885f
      musichub.business.AudioElement776d9bc5621fe50f
      musichub.business.Categoryf9388aaddff9a152
      musichub.business.CategoryTest8046f4a9dc44152c
      musichub.business.Genreb2fbdfedce493822
      musichub.business.Languaged39e77f1c1a0f641
      musichub.business.LanguageTestf53b266ad5abf5d4
      musichub.business.PlayList5513ec76de07c419
      musichub.business.PlayListTest7e7a002919fb95e1
      musichub.business.Song44a87f7f8335b156
      musichub.business.SongTest88f03b022c5c7270
      musichub.util.LogHandler09990b742e8d897c
      musichub.util.LogHandlerTest49f271871a8ef7bf
      musichub.util.PathValidation170ad3c706c07f6b
      musichub.util.PathValidationTest9eabcd97683d6e01
      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 +Sessions

      Sessions

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

      SessionStart TimeDump Time
      DESKTOP-M4INQND-91a7872b27 juin 2021, 13:23:3927 juin 2021, 13:23:40
      DESKTOP-M4INQND-11e0a09627 juin 2021, 18:57:0227 juin 2021, 18:57:02
      DESKTOP-M4INQND-7357f01027 juin 2021, 22:23:2727 juin 2021, 22:23:27
      DESKTOP-M4INQND-811f3cc528 juin 2021, 23:30:4728 juin 2021, 23:30:48
      DESKTOP-M4INQND-b70e956328 juin 2021, 23:31:5828 juin 2021, 23:31:59
      DESKTOP-M4INQND-a94600a728 juin 2021, 23:36:2628 juin 2021, 23:36:27
      DESKTOP-M4INQND-cbfb49a828 juin 2021, 23:36:3128 juin 2021, 23:36:32

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

      ClassId
      java.sql.Dated25610486aed3f31
      java.sql.Timestampb848522074600355
      musichub.business.AudioBookaaa13ef213e0885f
      musichub.business.AudioElementf7fee30268ca924b
      musichub.business.AudioElement776d9bc5621fe50f
      musichub.business.Categoryf9388aaddff9a152
      musichub.business.CategoryTest8046f4a9dc44152c
      musichub.business.Genreb2fbdfedce493822
      musichub.business.Languaged39e77f1c1a0f641
      musichub.business.LanguageTestf53b266ad5abf5d4
      musichub.business.PlayList5513ec76de07c419
      musichub.business.PlayListTest7e7a002919fb95e1
      musichub.business.Song44a87f7f8335b156
      musichub.business.SongTest88f03b022c5c7270
      musichub.util.LogHandler09990b742e8d897c
      musichub.util.LogHandlerTest49f271871a8ef7bf
      musichub.util.PathValidation170ad3c706c07f6b
      musichub.util.PathValidationTest9eabcd97683d6e01
      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 555d233..7b39bb6 100644 --- a/target/site/jacoco/jacoco.csv +++ b/target/site/jacoco/jacoco.csv @@ -2,13 +2,13 @@ GROUP,PACKAGE,CLASS,INSTRUCTION_MISSED,INSTRUCTION_COVERED,BRANCH_MISSED,BRANCH_ spoteezer,musichub.util,PathValidation,0,39,0,4,0,10,0,4,0,2 spoteezer,musichub.util,LogHandler,0,46,0,0,0,11,0,3,0,3 spoteezer,musichub.util,XMLHandler,6,66,0,0,4,21,0,4,0,4 -spoteezer,musichub.util,Policy,53,0,5,0,20,0,6,0,3,0 +spoteezer,musichub.util,Policy,60,0,5,0,24,0,6,0,3,0 spoteezer,musichub.business,Album,330,0,14,0,84,0,16,0,9,0 spoteezer,musichub.business,SortByAuthor,9,0,0,0,2,0,2,0,2,0 spoteezer,musichub.business,NoAlbumFoundException,4,0,0,0,2,0,1,0,1,0 spoteezer,musichub.business,Language,3,46,0,0,1,5,1,2,1,2 spoteezer,musichub.business,SortByDate,9,0,0,0,2,0,2,0,2,0 -spoteezer,musichub.business,MusicHub,874,0,124,0,209,0,85,0,23,0 +spoteezer,musichub.business,MusicHub,973,0,140,0,228,0,95,0,25,0 spoteezer,musichub.business,Category,3,46,0,0,1,5,1,2,1,2 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 @@ -17,5 +17,5 @@ spoteezer,musichub.business,AudioBook,117,47,8,2,27,12,12,5,4,5 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,85,181,9,2,30,42,11,5,4,5 -spoteezer,musichub.main,Main,625,0,42,0,215,0,31,0,3,0 +spoteezer,musichub.business,AudioElement,91,181,8,2,31,42,10,5,4,5 +spoteezer,musichub.main,Main,722,0,43,0,251,0,32,0,3,0 diff --git a/target/site/jacoco/jacoco.xml b/target/site/jacoco/jacoco.xml index e10770f..30a884a 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 18f7368..6498736 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
      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 +AudioElement

      AudioElement

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total91 of 27266 %8 of 1020 %1015317349
      manageAudioElement()740 %60 %55252511
      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 7863e1a..34bbc3b 100644 --- a/target/site/jacoco/musichub.business/AudioElement.java.html +++ b/target/site/jacoco/musichub.business/AudioElement.java.html @@ -1,19 +1,15 @@ AudioElement.java

      AudioElement.java

      package musichub.business;
       
      +import musichub.util.LogHandler;
       import org.w3c.dom.Document;
       import org.w3c.dom.Element;
       
      +import javax.sound.sampled.*;
       import java.io.File;
       import java.io.IOException;
       import java.util.Scanner;
       import java.util.UUID;
       
      -import javax.sound.sampled.AudioInputStream;
      -import javax.sound.sampled.AudioSystem;
      -import javax.sound.sampled.Clip;
      -import javax.sound.sampled.LineUnavailableException;
      -import javax.sound.sampled.UnsupportedAudioFileException;
      -
       public abstract class AudioElement {
           protected String title;
           protected String artist;
      @@ -21,109 +17,113 @@ public abstract class AudioElement {
           protected UUID uuid;
           protected String content;
       
      -    public AudioElement(String title, String artist, int lengthInSeconds, String id, String content) {
      -        this.title = title;
      -        this.artist = artist;
      -        this.lengthInSeconds = lengthInSeconds;
      -        this.uuid = UUID.fromString(id);
      -        this.content = content;
      -    }
      -
      -    public AudioElement(String title, String artist, int lengthInSeconds, String content) {
      -        this.title = title;
      -        this.artist = artist;
      -        this.lengthInSeconds = lengthInSeconds;
      -        this.content = content;
      -        this.uuid = UUID.randomUUID();
      -    }
      -
      -    public AudioElement(Element xmlElement) {
      +    public AudioElement(String title, String artist, int lengthInSeconds, String id, String content) {
      +        this.title = title;
      +        this.artist = artist;
      +        this.lengthInSeconds = lengthInSeconds;
      +        this.uuid = UUID.fromString(id);
      +        this.content = content;
      +    }
      +
      +    public AudioElement(String title, String artist, int lengthInSeconds, String content) {
      +        this.title = title;
      +        this.artist = artist;
      +        this.lengthInSeconds = lengthInSeconds;
      +        this.content = content;
      +        this.uuid = UUID.randomUUID();
      +    }
      +
      +    public AudioElement(Element xmlElement) {
               {
      -            title = xmlElement.getElementsByTagName("title").item(0).getTextContent();
      -            artist = xmlElement.getElementsByTagName("artist").item(0).getTextContent();
      -            lengthInSeconds = Integer.parseInt(xmlElement.getElementsByTagName("length").item(0).getTextContent());
      -            content = xmlElement.getElementsByTagName("content").item(0).getTextContent();
      -            String uuid = null;
      +            title = xmlElement.getElementsByTagName("title").item(0).getTextContent();
      +            artist = xmlElement.getElementsByTagName("artist").item(0).getTextContent();
      +            lengthInSeconds = Integer.parseInt(xmlElement.getElementsByTagName("length").item(0).getTextContent());
      +            content = xmlElement.getElementsByTagName("content").item(0).getTextContent();
      +            String uuid = null;
                   try {
      -                uuid = xmlElement.getElementsByTagName("UUID").item(0).getTextContent();
      -            } catch (Exception ex) {
      -                System.out.println("Empty element UUID, will create a new one");
      -            }
      -            if ((uuid == null) || (uuid.isEmpty()))
      -                this.uuid = UUID.randomUUID();
      -            else this.uuid = UUID.fromString(uuid);
      +                uuid = xmlElement.getElementsByTagName("UUID").item(0).getTextContent();
      +            } catch (Exception ex) {
      +                System.out.println("Empty element UUID, will create a new one");
      +            }
      +            if ((uuid == null) || (uuid.isEmpty()))
      +                this.uuid = UUID.randomUUID();
      +            else this.uuid = UUID.fromString(uuid);
               }
      -    }
      +    }
       
           public UUID getUUID() {
      -        return this.uuid;
      +        return this.uuid;
           }
       
           public String getArtist() {
      -        return this.artist;
      +        return this.artist;
           }
       
           public String getTitle() {
      -        return this.title;
      +        return this.title;
           }
       
           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 {
           	
      -    	Scanner scanner = new Scanner(System.in); 
      +    	Scanner scanner = new Scanner(System.in); 
           	
      -    	File file = new File(this.content);
      -    	AudioInputStream audioStream = AudioSystem.getAudioInputStream(file);
      -    	Clip clip = AudioSystem.getClip();
      -    	clip.open(audioStream);
      +    	File file = new File(this.content);
      +    	AudioInputStream audioStream = AudioSystem.getAudioInputStream(file);
      +    	Clip clip = AudioSystem.getClip();
      +    	clip.open(audioStream);
           	
      -    	String action = "";
      +    	String action = "";
           			
      -    	while(!action.equals("Q")) {
      -    		System.out.println("P = Play \b S = Stop \b R = Reset \b Q = Quit");
      -    		System.out.println("Enter your choice");
      -    		action = scanner.next();
      -        	action = action.toUpperCase();
      -        	
      -        	switch(action) {
      -        		case "S" : clip.stop();
      -        		break;
      -        		case "P" : clip.start();
      -        		break;
      -        		case "R" : clip.setMicrosecondPosition(0);
      -        		break;
      -        		case "Q" : clip.stop();
      -        		break;
      -        		default : System.out.println("try again");
      -        	}
      -        	System.out.println("You stoped the Audio element");
      -    	}
      +    	while(!action.equals("Q")) {
      +            System.out.println("P = Play \b S = Stop \b R = Reset \b Q = Quit");
      +            System.out.println("Enter your choice");
      +            action = scanner.next();
      +            action = action.toUpperCase();
      +
      +            switch (action) {
      +                case "S", "Q" -> {
      +                    clip.stop();
      +                    LogHandler.write("Music stopped", "INFO");
      +                }
      +                case "P" -> {
      +                    clip.start();
      +                    LogHandler.write("Music started", "INFO");
      +                }
      +                case "R" -> {
      +                    clip.setMicrosecondPosition(0);
      +                    LogHandler.write("Music reseted", "INFO");
      +                }
      +                default -> System.out.println("try again");
      +            }
      +            System.out.println("You stopped the Audio element");
      +        }
           	
           	clip.close();
           
      diff --git a/target/site/jacoco/musichub.business/MusicHub.html b/target/site/jacoco/musichub.business/MusicHub.html
      index 4ed5db0..43c8490 100644
      --- a/target/site/jacoco/musichub.business/MusicHub.html
      +++ b/target/site/jacoco/musichub.business/MusicHub.html
      @@ -1 +1 @@
      -MusicHub

      MusicHub

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total874 of 8740 %124 of 1240 %85852092092323
      addElementToAlbum(String, String)820 %120 %77202011
      addElementToPlayList(String, String)820 %120 %77202011
      getAlbumSongsSortedByGenre(String)790 %140 %88161611
      getAlbumSongs(String)730 %140 %88151511
      searchAudioElement()710 %100 %66141411
      loadElements()640 %100 %66181811
      getAudiobooksTitlesSortedByAuthor()530 %60 %449911
      saveElements()470 %80 %55121211
      loadAlbums()440 %80 %55111111
      loadPlaylists()440 %80 %55111111
      deletePlayList(String)400 %80 %55111111
      saveAlbums()360 %40 %33101011
      savePlayLists()360 %40 %33101011
      getAlbumsTitlesSortedByDate()320 %20 %225511
      MusicHub()290 %n/a119911
      getAudioElement(List, String)190 %40 %335511
      static {...}130 %n/a114411
      addElement(AudioElement)60 %n/a112211
      addAlbum(Album)60 %n/a112211
      addPlaylist(PlayList)60 %n/a112211
      albums()40 %n/a111111
      playlists()40 %n/a111111
      elements()40 %n/a111111
      \ No newline at end of file +MusicHub

      MusicHub

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total973 of 9730 %140 of 1400 %95952282282525
      addElementToAlbum(String, String)820 %120 %77202011
      addElementToPlayList(String, String)820 %120 %77202011
      getAlbumSongsSortedByGenre(String)790 %140 %88161611
      getAlbumSongs(String)730 %140 %88151511
      getPlayListSongs(String)730 %140 %88151511
      searchAudioElement()710 %100 %66141411
      loadElements()640 %100 %66181811
      getAudiobooksTitlesSortedByAuthor()530 %60 %449911
      saveElements()470 %80 %55121211
      loadAlbums()440 %80 %55111111
      loadPlaylists()440 %80 %55111111
      deletePlayList(String)400 %80 %55111111
      saveAlbums()360 %40 %33101011
      savePlayLists()360 %40 %33101011
      getAlbumsTitlesSortedByDate()320 %20 %225511
      MusicHub()290 %n/a119911
      getPlayListsTitles()260 %20 %224411
      getAudioElement(List, String)190 %40 %335511
      static {...}130 %n/a114411
      addElement(AudioElement)60 %n/a112211
      addAlbum(Album)60 %n/a112211
      addPlaylist(PlayList)60 %n/a112211
      albums()40 %n/a111111
      playlists()40 %n/a111111
      elements()40 %n/a111111
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/MusicHub.java.html b/target/site/jacoco/musichub.business/MusicHub.java.html index ec5e661..deb88a0 100644 --- a/target/site/jacoco/musichub.business/MusicHub.java.html +++ b/target/site/jacoco/musichub.business/MusicHub.java.html @@ -6,359 +6,401 @@ import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; -import java.io.IOException; -import java.util.*; - import javax.sound.sampled.LineUnavailableException; import javax.sound.sampled.UnsupportedAudioFileException; +import java.io.IOException; +import java.util.*; -class SortByDate implements Comparator<Album> { +class SortByDate implements Comparator<Album> { public int compare(Album a1, Album a2) { - return a1.getDate().compareTo(a2.getDate()); + return a1.getDate().compareTo(a2.getDate()); } } -class SortByGenre implements Comparator<Song> { +class SortByGenre implements Comparator<Song> { public int compare(Song s1, Song s2) { - return s1.getGenre().compareTo(s2.getGenre()); + return s1.getGenre().compareTo(s2.getGenre()); } } -class SortByAuthor implements Comparator<AudioElement> { +class SortByAuthor implements Comparator<AudioElement> { public int compare(AudioElement e1, AudioElement e2) { - return e1.getArtist().compareTo(e2.getArtist()); + return e1.getArtist().compareTo(e2.getArtist()); } } public class MusicHub { - public static final String DIR = System.getProperty("user.dir"); - public static final String ALBUMS_FILE_PATH = DIR + "/files/albums.xml"; - public static final String PLAYLISTS_FILE_PATH = DIR + "/files/playlists.xml"; - public static final String ELEMENTS_FILE_PATH = DIR + "/files/elements.xml"; + public static final String DIR = System.getProperty("user.dir"); + public static final String ALBUMS_FILE_PATH = DIR + "/files/albums.xml"; + public static final String PLAYLISTS_FILE_PATH = DIR + "/files/playlists.xml"; + public static final String ELEMENTS_FILE_PATH = DIR + "/files/elements.xml"; private final List<Album> albums; private final List<PlayList> playlists; private final List<AudioElement> elements; - private final XMLHandler xmlHandler = new XMLHandler(); + private final XMLHandler xmlHandler = new XMLHandler(); - public MusicHub() { - albums = new LinkedList<>(); - playlists = new LinkedList<>(); - elements = new LinkedList<>(); - this.loadElements(); - this.loadAlbums(); - this.loadPlaylists(); - } + public MusicHub() { + albums = new LinkedList<>(); + playlists = new LinkedList<>(); + elements = new LinkedList<>(); + this.loadElements(); + this.loadAlbums(); + this.loadPlaylists(); + } public void addElement(AudioElement element) { - elements.add(element); - } + elements.add(element); + } public void addAlbum(Album album) { - albums.add(album); - } + albums.add(album); + } public void addPlaylist(PlayList playlist) { - playlists.add(playlist); - } + playlists.add(playlist); + } public void deletePlayList(String playListTitle) throws NoPlayListFoundException { - PlayList thePlayList = null; - boolean result = false; - for (PlayList pl : playlists) { - if (pl.getTitle().equalsIgnoreCase(playListTitle)) { - thePlayList = pl; - break; + PlayList thePlayList = null; + boolean result = false; + for (PlayList pl : playlists) { + if (pl.getTitle().equalsIgnoreCase(playListTitle)) { + thePlayList = pl; + break; } - } + } - if (thePlayList != null) - result = playlists.remove(thePlayList); - if (!result) throw new NoPlayListFoundException("Playlist " + playListTitle + " not found!"); - } + if (thePlayList != null) + result = playlists.remove(thePlayList); + if (!result) throw new NoPlayListFoundException("Playlist " + playListTitle + " not found!"); + } public Iterator<Album> albums() { - return albums.listIterator(); + return albums.listIterator(); } public Iterator<PlayList> playlists() { - return playlists.listIterator(); + return playlists.listIterator(); } public Iterator<AudioElement> elements() { - return elements.listIterator(); + return elements.listIterator(); } public String getAlbumsTitlesSortedByDate() { - StringBuilder titleList = new StringBuilder(); - albums.sort(new SortByDate()); - for (Album al : albums) - titleList.append(al.getTitle()).append("\n"); - return titleList.toString(); + StringBuilder titleList = new StringBuilder(); + albums.sort(new SortByDate()); + for (Album al : albums) + titleList.append(al.getTitle()).append("\n"); + return titleList.toString(); } public String getAudiobooksTitlesSortedByAuthor() { - StringBuilder titleList = new StringBuilder(); - List<AudioElement> audioBookList = new ArrayList<>(); - for (AudioElement ae : elements) - if (ae instanceof AudioBook) - audioBookList.add(ae); - audioBookList.sort(new SortByAuthor()); - for (AudioElement ab : audioBookList) - titleList.append(ab.getArtist()).append("\n"); - return titleList.toString(); + StringBuilder titleList = new StringBuilder(); + List<AudioElement> audioBookList = new ArrayList<>(); + for (AudioElement ae : elements) + if (ae instanceof AudioBook) + audioBookList.add(ae); + audioBookList.sort(new SortByAuthor()); + for (AudioElement ab : audioBookList) + titleList.append(ab.getArtist()).append("\n"); + return titleList.toString(); } public List<AudioElement> getAlbumSongs(String albumTitle) throws NoAlbumFoundException { - Album theAlbum = null; - ArrayList<AudioElement> songsInAlbum = new ArrayList<>(); - for (Album al : albums) { - if (al.getTitle().equalsIgnoreCase(albumTitle)) { - theAlbum = al; - break; + Album theAlbum = null; + ArrayList<AudioElement> songsInAlbum = new ArrayList<>(); + for (Album al : albums) { + if (al.getTitle().equalsIgnoreCase(albumTitle)) { + theAlbum = al; + break; } - } - if (theAlbum == null) throw new NoAlbumFoundException("No album with this title in the MusicHub!"); - - List<UUID> songIDs = theAlbum.getSongs(); - for (UUID id : songIDs) - for (AudioElement el : elements) { - if (el instanceof Song) { - if (el.getUUID().equals(id)) songsInAlbum.add(el); + } + if (theAlbum == null) throw new NoAlbumFoundException("No album with this title in the MusicHub!"); + + List<UUID> songIDs = theAlbum.getSongs(); + for (UUID id : songIDs) + for (AudioElement el : elements) { + if (el instanceof Song) { + if (el.getUUID().equals(id)) songsInAlbum.add(el); } - } - return songsInAlbum; + } + return songsInAlbum; } public List<Song> getAlbumSongsSortedByGenre(String albumTitle) throws NoAlbumFoundException { - Album theAlbum = null; - ArrayList<Song> songsInAlbum = new ArrayList<>(); - for (Album al : albums) { - if (al.getTitle().equalsIgnoreCase(albumTitle)) { - theAlbum = al; - break; + Album theAlbum = null; + ArrayList<Song> songsInAlbum = new ArrayList<>(); + for (Album al : albums) { + if (al.getTitle().equalsIgnoreCase(albumTitle)) { + theAlbum = al; + break; } - } - if (theAlbum == null) throw new NoAlbumFoundException("No album with this title in the MusicHub!"); - - List<UUID> songIDs = theAlbum.getSongs(); - for (UUID id : songIDs) - for (AudioElement el : elements) { - if (el instanceof Song) { - if (el.getUUID().equals(id)) songsInAlbum.add((Song) el); + } + if (theAlbum == null) throw new NoAlbumFoundException("No album with this title in the MusicHub!"); + + List<UUID> songIDs = theAlbum.getSongs(); + for (UUID id : songIDs) + for (AudioElement el : elements) { + if (el instanceof Song) { + if (el.getUUID().equals(id)) songsInAlbum.add((Song) el); } - } - songsInAlbum.sort(new SortByGenre()); - return songsInAlbum; + } + songsInAlbum.sort(new SortByGenre()); + return songsInAlbum; } public void addElementToAlbum(String elementTitle, String albumTitle) throws NoAlbumFoundException, NoElementFoundException { - Album theAlbum = null; + Album theAlbum = null; int i; - boolean found = false; - for (i = 0; i < albums.size(); i++) { - if (albums.get(i).getTitle().equalsIgnoreCase(albumTitle)) { - theAlbum = albums.get(i); - found = true; - break; + boolean found = false; + for (i = 0; i < albums.size(); i++) { + if (albums.get(i).getTitle().equalsIgnoreCase(albumTitle)) { + theAlbum = albums.get(i); + found = true; + break; } } - if (found) { - AudioElement theElement = null; - for (AudioElement ae : elements) { - if (ae.getTitle().equalsIgnoreCase(elementTitle)) { - theElement = ae; - break; + if (found) { + AudioElement theElement = null; + for (AudioElement ae : elements) { + if (ae.getTitle().equalsIgnoreCase(elementTitle)) { + theElement = ae; + break; } - } - if (theElement != null) { - theAlbum.addSong(theElement.getUUID()); + } + if (theElement != null) { + theAlbum.addSong(theElement.getUUID()); //replace the album in the list - albums.set(i, theAlbum); - } else throw new NoElementFoundException("Element " + elementTitle + " not found!"); - } else throw new NoAlbumFoundException("Album " + albumTitle + " not found!"); + albums.set(i, theAlbum); + } else throw new NoElementFoundException("Element " + elementTitle + " not found!"); + } else throw new NoAlbumFoundException("Album " + albumTitle + " not found!"); - } + } public void addElementToPlayList(String elementTitle, String playListTitle) throws NoPlayListFoundException, NoElementFoundException { - PlayList thePlaylist = null; + PlayList thePlaylist = null; int i; - boolean found = false; + boolean found = false; - for (i = 0; i < playlists.size(); i++) { - if (playlists.get(i).getTitle().equalsIgnoreCase(playListTitle)) { - thePlaylist = playlists.get(i); - found = true; - break; + for (i = 0; i < playlists.size(); i++) { + if (playlists.get(i).getTitle().equalsIgnoreCase(playListTitle)) { + thePlaylist = playlists.get(i); + found = true; + break; } } - if (found) { - AudioElement theElement = null; - for (AudioElement ae : elements) { - if (ae.getTitle().equalsIgnoreCase(elementTitle)) { - theElement = ae; - break; + if (found) { + AudioElement theElement = null; + for (AudioElement ae : elements) { + if (ae.getTitle().equalsIgnoreCase(elementTitle)) { + theElement = ae; + break; } - } - if (theElement != null) { - thePlaylist.addElement(theElement.getUUID()); + } + if (theElement != null) { + thePlaylist.addElement(theElement.getUUID()); //replace the album in the list - playlists.set(i, thePlaylist); - } else throw new NoElementFoundException("Element " + elementTitle + " not found!"); + playlists.set(i, thePlaylist); + } else throw new NoElementFoundException("Element " + elementTitle + " not found!"); - } else throw new NoPlayListFoundException("Playlist " + playListTitle + " not found!"); + } else throw new NoPlayListFoundException("Playlist " + playListTitle + " not found!"); - } + } private void loadAlbums() { - NodeList albumNodes = xmlHandler.parseXMLFile(ALBUMS_FILE_PATH); - if (albumNodes == null) return; + NodeList albumNodes = xmlHandler.parseXMLFile(ALBUMS_FILE_PATH); + if (albumNodes == null) return; - for (int i = 0; i < albumNodes.getLength(); i++) { - if (albumNodes.item(i).getNodeType() == Node.ELEMENT_NODE) { - Element albumElement = (Element) albumNodes.item(i); - if (albumElement.getNodeName().equals("album")) { + for (int i = 0; i < albumNodes.getLength(); i++) { + if (albumNodes.item(i).getNodeType() == Node.ELEMENT_NODE) { + Element albumElement = (Element) albumNodes.item(i); + if (albumElement.getNodeName().equals("album")) { try { - this.addAlbum(new Album(albumElement)); - } catch (Exception ex) { - System.out.println("Something is wrong with the XML album element"); - } + this.addAlbum(new Album(albumElement)); + } catch (Exception ex) { + System.out.println("Something is wrong with the XML album element"); + } } } } - } + } private void loadPlaylists() { - NodeList playlistNodes = xmlHandler.parseXMLFile(PLAYLISTS_FILE_PATH); - if (playlistNodes == null) return; + NodeList playlistNodes = xmlHandler.parseXMLFile(PLAYLISTS_FILE_PATH); + if (playlistNodes == null) return; - for (int i = 0; i < playlistNodes.getLength(); i++) { - if (playlistNodes.item(i).getNodeType() == Node.ELEMENT_NODE) { - Element playlistElement = (Element) playlistNodes.item(i); - if (playlistElement.getNodeName().equals("playlist")) { + for (int i = 0; i < playlistNodes.getLength(); i++) { + if (playlistNodes.item(i).getNodeType() == Node.ELEMENT_NODE) { + Element playlistElement = (Element) playlistNodes.item(i); + if (playlistElement.getNodeName().equals("playlist")) { try { - this.addPlaylist(new PlayList(playlistElement)); - } catch (Exception ex) { - System.out.println("Something is wrong with the XML playlist element"); - } + this.addPlaylist(new PlayList(playlistElement)); + } catch (Exception ex) { + System.out.println("Something is wrong with the XML playlist element"); + } } } } - } + } private void loadElements() { - NodeList audioelementsNodes = xmlHandler.parseXMLFile(ELEMENTS_FILE_PATH); - if (audioelementsNodes == null) return; + NodeList audioelementsNodes = xmlHandler.parseXMLFile(ELEMENTS_FILE_PATH); + if (audioelementsNodes == null) return; - for (int i = 0; i < audioelementsNodes.getLength(); i++) { - if (audioelementsNodes.item(i).getNodeType() == Node.ELEMENT_NODE) { - Element audioElement = (Element) audioelementsNodes.item(i); - if (audioElement.getNodeName().equals("song")) { + for (int i = 0; i < audioelementsNodes.getLength(); i++) { + if (audioelementsNodes.item(i).getNodeType() == Node.ELEMENT_NODE) { + Element audioElement = (Element) audioelementsNodes.item(i); + if (audioElement.getNodeName().equals("song")) { try { - AudioElement newSong = new Song(audioElement); - this.addElement(newSong); - } catch (Exception ex) { - System.out.println("Something is wrong with the XML song element"); - } + AudioElement newSong = new Song(audioElement); + this.addElement(newSong); + } catch (Exception ex) { + System.out.println("Something is wrong with the XML song element"); + } } - if (audioElement.getNodeName().equals("audiobook")) { + if (audioElement.getNodeName().equals("audiobook")) { try { - AudioElement newAudioBook = new AudioBook(audioElement); - this.addElement(newAudioBook); - } catch (Exception ex) { - System.out.println("Something is wrong with the XML audiobook element"); - } + AudioElement newAudioBook = new AudioBook(audioElement); + this.addElement(newAudioBook); + } catch (Exception ex) { + System.out.println("Something is wrong with the XML audiobook element"); + } } } } - } + } public void saveAlbums() { - Document document = xmlHandler.createXMLDocument(); - if (document == null) return; + Document document = xmlHandler.createXMLDocument(); + if (document == null) return; // root element - Element root = document.createElement("albums"); - document.appendChild(root); + Element root = document.createElement("albums"); + document.appendChild(root); //save all albums - for (Iterator<Album> albumsIter = this.albums(); albumsIter.hasNext(); ) { - Album currentAlbum = albumsIter.next(); - currentAlbum.createXMLElement(document, root); - } - xmlHandler.createXMLFile(document, ALBUMS_FILE_PATH); - } + for (Iterator<Album> albumsIter = this.albums(); albumsIter.hasNext(); ) { + Album currentAlbum = albumsIter.next(); + currentAlbum.createXMLElement(document, root); + } + xmlHandler.createXMLFile(document, ALBUMS_FILE_PATH); + } public void savePlayLists() { - Document document = xmlHandler.createXMLDocument(); - if (document == null) return; + Document document = xmlHandler.createXMLDocument(); + if (document == null) return; // root element - Element root = document.createElement("playlists"); - document.appendChild(root); + Element root = document.createElement("playlists"); + document.appendChild(root); //save all playlists - for (Iterator<PlayList> playlistsIter = this.playlists(); playlistsIter.hasNext(); ) { - PlayList currentPlayList = playlistsIter.next(); - currentPlayList.createXMLElement(document, root); - } - xmlHandler.createXMLFile(document, PLAYLISTS_FILE_PATH); - } + for (Iterator<PlayList> playlistsIter = this.playlists(); playlistsIter.hasNext(); ) { + PlayList currentPlayList = playlistsIter.next(); + currentPlayList.createXMLElement(document, root); + } + xmlHandler.createXMLFile(document, PLAYLISTS_FILE_PATH); + } public void saveElements() { - Document document = xmlHandler.createXMLDocument(); - if (document == null) return; + Document document = xmlHandler.createXMLDocument(); + if (document == null) return; // root element - Element root = document.createElement("elements"); - document.appendChild(root); + Element root = document.createElement("elements"); + document.appendChild(root); //save all AudioElements - for (AudioElement currentElement : elements) { + for (AudioElement currentElement : elements) { - if (currentElement instanceof Song) { - currentElement.createXMLElement(document, root); + if (currentElement instanceof Song) { + currentElement.createXMLElement(document, root); } - if (currentElement instanceof AudioBook) { - currentElement.createXMLElement(document, root); + if (currentElement instanceof AudioBook) { + currentElement.createXMLElement(document, root); } - } - xmlHandler.createXMLFile(document, ELEMENTS_FILE_PATH); - } + } + xmlHandler.createXMLFile(document, ELEMENTS_FILE_PATH); + } public void getAudioElement(List<AudioElement> audios, String elementTitle) throws NoAlbumFoundException, UnsupportedAudioFileException, IOException, LineUnavailableException { - for (AudioElement el : audios) { - if (el.getTitle().equalsIgnoreCase(elementTitle)) { - el.manageAudioElement(); + for (AudioElement el : audios) { + if (el.getTitle().equalsIgnoreCase(elementTitle)) { + el.manageAudioElement(); } - } + } - } + } public void searchAudioElement() throws UnsupportedAudioFileException, NoAlbumFoundException, LineUnavailableException, IOException, NoElementFoundException { - Scanner scanner = new Scanner(System.in); - System.out.println("Entrez le titre ou l'artiste de la musique que vous souhaitez chercher dans la base de données"); - String word = scanner.next().toLowerCase(Locale.ROOT); - List<AudioElement> searchResult = new ArrayList<>(); - for(AudioElement el : elements){ - if(el.getTitle().toLowerCase(Locale.ROOT).contains(word) || el.getArtist().toLowerCase(Locale.ROOT).contains(word)){ - searchResult.add(el); - System.out.println(el); + Scanner scanner = new Scanner(System.in); + System.out.println("Entrez le titre ou l'artiste de la musique que vous souhaitez chercher dans la base de données"); + String word = scanner.next().toLowerCase(Locale.ROOT); + List<AudioElement> searchResult = new ArrayList<>(); + for(AudioElement el : elements){ + if(el.getTitle().toLowerCase(Locale.ROOT).contains(word) || el.getArtist().toLowerCase(Locale.ROOT).contains(word)){ + searchResult.add(el); + System.out.println(el); } - } + } - if(searchResult.isEmpty()){ - throw new NoElementFoundException("Any result for your search"); + if (searchResult.isEmpty()) { + throw new NoElementFoundException("Any result for your search"); } - if (searchResult.size()==1){ - this.getAudioElement(searchResult, searchResult.get(0).getTitle()); + if (searchResult.size() == 1) { + this.getAudioElement(searchResult, searchResult.get(0).getTitle()); } - } + } + + /** + * Method getting a list of playlists + * + * @return a list of playlist titles + * @author Anthony BOULANT + */ + public String getPlayListsTitles() { + StringBuilder titleList = new StringBuilder(); + + for (PlayList pl : playlists) + titleList.append(pl.getTitle()).append("\n"); + return titleList.toString(); + } + /** + * Method checking the songs contained in a chosen playlist and returning them if found. + * + * @param playListTitle the title of a (chosen) playlist + * @return a list of songs from a playlist + * @throws NoPlayListFoundException if the chosen playlist doesn't exist + * @author Anthony BOULANT + */ + public List<AudioElement> getPlayListSongs(String playListTitle) throws NoPlayListFoundException { + PlayList thePlayList = null; + ArrayList<AudioElement> songsInPlayList = new ArrayList<>(); + for (PlayList pl : playlists) { + if (pl.getTitle().equalsIgnoreCase(playListTitle)) { + thePlayList = pl; + break; + } + } + if (thePlayList == null) throw new NoPlayListFoundException("No playlist with this title in the MusicHub!"); + + List<UUID> songIDs = thePlayList.getElements(); + for (UUID id : songIDs) + for (AudioElement el : elements) { + if (el instanceof Song) { + if (el.getUUID().equals(id)) songsInPlayList.add(el); + } + } + return songsInPlayList; + + } }
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/SortByAuthor.html b/target/site/jacoco/musichub.business/SortByAuthor.html index 851cdce..b762715 100644 --- a/target/site/jacoco/musichub.business/SortByAuthor.html +++ b/target/site/jacoco/musichub.business/SortByAuthor.html @@ -1 +1 @@ -SortByAuthor

      SortByAuthor

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total9 of 90 %0 of 0n/a222222
      compare(AudioElement, AudioElement)60 %n/a111111
      SortByAuthor()30 %n/a111111
      \ No newline at end of file +SortByAuthor

      SortByAuthor

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total9 of 90 %0 of 0n/a222222
      compare(AudioElement, AudioElement)60 %n/a111111
      SortByAuthor()30 %n/a111111
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/SortByDate.html b/target/site/jacoco/musichub.business/SortByDate.html index 8f4b2f7..6f9a099 100644 --- a/target/site/jacoco/musichub.business/SortByDate.html +++ b/target/site/jacoco/musichub.business/SortByDate.html @@ -1 +1 @@ -SortByDate

      SortByDate

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total9 of 90 %0 of 0n/a222222
      compare(Album, Album)60 %n/a111111
      SortByDate()30 %n/a111111
      \ No newline at end of file +SortByDate

      SortByDate

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total9 of 90 %0 of 0n/a222222
      compare(Album, Album)60 %n/a111111
      SortByDate()30 %n/a111111
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.business/SortByGenre.html b/target/site/jacoco/musichub.business/SortByGenre.html index 6dd6e7d..d89caea 100644 --- a/target/site/jacoco/musichub.business/SortByGenre.html +++ b/target/site/jacoco/musichub.business/SortByGenre.html @@ -1 +1 @@ -SortByGenre

      SortByGenre

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total9 of 90 %0 of 0n/a222222
      compare(Song, Song)60 %n/a111111
      SortByGenre()30 %n/a111111
      \ No newline at end of file +SortByGenre

      SortByGenre

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total9 of 90 %0 of 0n/a222222
      compare(Song, Song)60 %n/a111111
      SortByGenre()30 %n/a111111
      \ 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 f7cd669..2f40e82 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 483 of 2 13430 %160 of 17910 %1401783735135182815
      MusicHub8740 %1240 %8585209209232311
      Album3300 %140 %161684849911
      AudioBook1174728 %8220 %121727394901
      AudioElement8518168 %9218 %111630724901
      PlayList3217084 %5964 %5149530701
      SortByAuthor90 %n/a22222211
      SortByDate90 %n/a22222211
      SortByGenre90 %n/a22222211
      NoAlbumFoundException0 %n/a11221111
      NoPlayListFoundException0 %n/a11221111
      NoElementFoundException0 %n/a11221111
      Language4693 %n/a13161301
      Category4693 %n/a13161301
      Song105100 %6100 %0120260701
      Genre56100 %n/a03060301
      \ No newline at end of file +musichub.business

      musichub.business

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total1 588 of 2 23929 %175 of 1949 %1491873935335384815
      MusicHub9730 %1400 %9595228228252511
      Album3300 %140 %161684849911
      AudioBook1174728 %8220 %121727394901
      AudioElement9118166 %8220 %101531734901
      PlayList3217084 %5964 %5149530701
      SortByAuthor90 %n/a22222211
      SortByDate90 %n/a22222211
      SortByGenre90 %n/a22222211
      NoAlbumFoundException0 %n/a11221111
      NoPlayListFoundException0 %n/a11221111
      NoElementFoundException0 %n/a11221111
      Language4693 %n/a13161301
      Category4693 %n/a13161301
      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 15d2893..8bc89c8 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 483 of 2 13430 %160 of 17910 %1401783735135182815
      MusicHub.java9010 %1240 %9191215215292944
      Album.java3300 %140 %161684849911
      AudioBook.java1174728 %8220 %121727394901
      AudioElement.java8518168 %9218 %111630724901
      PlayList.java3217084 %5964 %5149530701
      NoAlbumFoundException.java0 %n/a11221111
      NoPlayListFoundException.java0 %n/a11221111
      NoElementFoundException.java0 %n/a11221111
      Language.java4693 %n/a13161301
      Category.java4693 %n/a13161301
      Song.java105100 %6100 %0120260701
      Genre.java56100 %n/a03060301
      \ No newline at end of file +musichub.business

      musichub.business

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total1 588 of 2 23929 %175 of 1949 %1491873935335384815
      MusicHub.java1 0000 %1400 %101101234234313144
      Album.java3300 %140 %161684849911
      AudioBook.java1174728 %8220 %121727394901
      AudioElement.java9118166 %8220 %101531734901
      PlayList.java3217084 %5964 %5149530701
      NoAlbumFoundException.java0 %n/a11221111
      NoPlayListFoundException.java0 %n/a11221111
      NoElementFoundException.java0 %n/a11221111
      Language.java4693 %n/a13161301
      Category.java4693 %n/a13161301
      Song.java105100 %6100 %0120260701
      Genre.java56100 %n/a03060301
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.main/Main.html b/target/site/jacoco/musichub.main/Main.html index 3666c2b..f24445f 100644 --- a/target/site/jacoco/musichub.main/Main.html +++ b/target/site/jacoco/musichub.main/Main.html @@ -1 +1 @@ -Main

      Main

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total625 of 6250 %42 of 420 %313121521533
      main(String[])5790 %420 %292919919911
      printAvailableCommands()430 %n/a11151511
      Main()0 %n/a111111
      \ No newline at end of file +Main

      Main

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total722 of 7220 %43 of 430 %323225125133
      main(String[])6730 %430 %303023423411
      printAvailableCommands()460 %n/a11161611
      Main()0 %n/a111111
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.main/Main.java.html b/target/site/jacoco/musichub.main/Main.java.html index 121cc55..d2b3fb0 100644 --- a/target/site/jacoco/musichub.main/Main.java.html +++ b/target/site/jacoco/musichub.main/Main.java.html @@ -31,7 +31,7 @@ import static musichub.util.Policy.showTerm; if (choice.length() == 0) System.exit(0); while (!choice.equals("")) { //if the user puts nothing, quit the loop/system - switch (choice.charAt(0)) { + switch (choice.charAt(0)) { case 'q': //added the option directly in the switch instead of the loop System.exit(0); case 'h': @@ -54,240 +54,283 @@ import static musichub.util.Policy.showTerm; List<Song> songs = theHub.getAlbumSongsSortedByGenre(albumTitle); System.out.println(songs); } catch (NoAlbumFoundException ex) { - System.out.println("No album found with the requested title " + ex.getMessage()); - } - printAvailableCommands(); - choice = scan.nextLine(); - break; + LogHandler.write("No album found with the requested title", "WARNING"); + System.out.println("No album found with the requested title " + ex.getMessage()); + } + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'd': //songs of an album - System.out.println("Songs of an album will be displayed; enter the album name, available albums are:"); - System.out.println(theHub.getAlbumsTitlesSortedByDate()); + System.out.println("Songs of an album will be displayed; enter the album name, available albums are:"); + System.out.println(theHub.getAlbumsTitlesSortedByDate()); - albumTitle = scan.nextLine(); + albumTitle = scan.nextLine(); try { - List<AudioElement> songs = theHub.getAlbumSongs(albumTitle); - System.out.println(theHub.getAlbumSongs(albumTitle)); - String song = scan.nextLine(); - theHub.getAudioElement(songs, song); - } catch (NoAlbumFoundException ex) { - System.out.println("No album found with the requested title " + ex.getMessage()); - } - printAvailableCommands(); - choice = scan.nextLine(); - break; + List<AudioElement> songs = theHub.getAlbumSongs(albumTitle); + System.out.println(theHub.getAlbumSongs(albumTitle)); + String song = scan.nextLine(); + theHub.getAudioElement(songs, song); + } catch (NoAlbumFoundException ex) { + LogHandler.write("No album found with the requested title", "WARNING"); + System.out.println("No album found with the requested title " + ex.getMessage()); + } + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'u': //audiobooks ordered by author - System.out.println(theHub.getAudiobooksTitlesSortedByAuthor()); - printAvailableCommands(); - choice = scan.nextLine(); - break; + System.out.println(theHub.getAudiobooksTitlesSortedByAuthor()); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'c': // add a new song - System.out.println("Enter a new song: "); - System.out.println("Song title: "); - String title = scan.nextLine(); - System.out.println("Song genre (jazz, classic, hiphop, rock, pop, rap):"); - String genre = scan.nextLine(); - System.out.println("Song artist: "); - String artist = scan.nextLine(); - System.out.println("Song length in seconds: "); - int length = Integer.parseInt(scan.nextLine()); + System.out.println("Enter a new song: "); + System.out.println("Song title: "); + String title = scan.nextLine(); + System.out.println("Song genre (jazz, classic, hiphop, rock, pop, rap):"); + String genre = scan.nextLine(); + System.out.println("Song artist: "); + String artist = scan.nextLine(); - System.out.println("Song content: "); - String content = scan.nextLine(); - if (!isPathValid(content)) { - String logMsg = "The music file was not found with the path you've provided or the extension is not .wav"; - LogHandler.write(logMsg, "WARNING"); //write a line in the log file - System.out.println(logMsg + "\nType h for available commands"); - choice = scan.nextLine(); - break; + int length; + try { + System.out.println("Song length in seconds: "); + length = Integer.parseInt(scan.nextLine()); + } catch (NumberFormatException ex) { + String logMsg = "You've not provided a number for the length."; + LogHandler.write(logMsg, "ERROR"); //write a line in the log file + System.err.println(logMsg); + System.out.println("Type h for available commands"); + choice = scan.nextLine(); + break; + } + + System.out.println("Song content: "); + String content = scan.nextLine(); + if (!isPathValid(content)) { + String logMsg = "The music file cannot be found with the path you've provided or the extension is not .wav"; + LogHandler.write(logMsg, "ERROR"); //write a line in the log file + System.err.println(logMsg); + System.out.println("Type h for available commands"); + choice = scan.nextLine(); + break; } - Song s = new Song(title, artist, length, content, genre); - theHub.addElement(s); - System.out.println("New element list: "); - Iterator<AudioElement> it = theHub.elements(); - while (it.hasNext()) System.out.println(it.next().getTitle()); - System.out.println("Song created!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + Song s = new Song(title, artist, length, content, genre); + theHub.addElement(s); + System.out.println("New element list: "); + Iterator<AudioElement> it = theHub.elements(); + while (it.hasNext()) System.out.println(it.next().getTitle()); + LogHandler.write("Song successfully created", "INFO"); + System.out.println("Song created!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'a': // add a new album - System.out.println("Enter a new album: "); - System.out.println("Album title: "); - String aTitle = scan.nextLine(); - System.out.println("Album artist: "); - String aArtist = scan.nextLine(); - System.out.println("Album length in seconds: "); - int aLength = Integer.parseInt(scan.nextLine()); - System.out.println("Album date as YYYY-DD-MM: "); - String aDate = scan.nextLine(); - Album a = new Album(aTitle, aArtist, aLength, aDate); - theHub.addAlbum(a); - System.out.println("New list of albums: "); - Iterator<Album> ita = theHub.albums(); - while (ita.hasNext()) System.out.println(ita.next().getTitle()); - System.out.println("Album created!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + System.out.println("Enter a new album: "); + System.out.println("Album title: "); + String aTitle = scan.nextLine(); + System.out.println("Album artist: "); + String aArtist = scan.nextLine(); + System.out.println("Album length in seconds: "); + int aLength = Integer.parseInt(scan.nextLine()); + System.out.println("Album date as YYYY-DD-MM: "); + String aDate = scan.nextLine(); + Album a = new Album(aTitle, aArtist, aLength, aDate); + theHub.addAlbum(a); + System.out.println("New list of albums: "); + Iterator<Album> ita = theHub.albums(); + while (ita.hasNext()) System.out.println(ita.next().getTitle()); + LogHandler.write("Album successfully created", "INFO"); + System.out.println("Album created!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case '+': //add a song to an album: - System.out.println("Add an existing song to an existing album"); - System.out.println("Type the name of the song you wish to add. Available songs: "); - Iterator<AudioElement> itae = theHub.elements(); - while (itae.hasNext()) { - AudioElement ae = itae.next(); - if (ae instanceof Song) System.out.println(ae.getTitle()); - } - String songTitle = scan.nextLine(); + System.out.println("Add an existing song to an existing album"); + System.out.println("Type the name of the song you wish to add. Available songs: "); + Iterator<AudioElement> itae = theHub.elements(); + while (itae.hasNext()) { + AudioElement ae = itae.next(); + if (ae instanceof Song) System.out.println(ae.getTitle()); + } + String songTitle = scan.nextLine(); - System.out.println("Type the name of the album you wish to enrich. Available albums: "); - Iterator<Album> ait = theHub.albums(); - while (ait.hasNext()) { - Album al = ait.next(); - System.out.println(al.getTitle()); - } - String titleAlbum = scan.nextLine(); + System.out.println("Type the name of the album you wish to enrich. Available albums: "); + Iterator<Album> ait = theHub.albums(); + while (ait.hasNext()) { + Album al = ait.next(); + System.out.println(al.getTitle()); + } + String titleAlbum = scan.nextLine(); try { - theHub.addElementToAlbum(songTitle, titleAlbum); - } catch (NoAlbumFoundException | NoElementFoundException ex) { - System.out.println(ex.getMessage()); - } - System.out.println("Song added to the album!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + theHub.addElementToAlbum(songTitle, titleAlbum); + } catch (NoAlbumFoundException | NoElementFoundException ex) { + System.out.println(ex.getMessage()); + } + LogHandler.write("Song successfully added to the album", "INFO"); + System.out.println("Song added to the album!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'l': // add a new audiobook - System.out.println("Enter a new audiobook: "); - System.out.println("AudioBook title: "); - String bTitle = scan.nextLine(); - System.out.println("AudioBook category (youth, novel, theater, documentary, speech)"); - String bCategory = scan.nextLine(); - System.out.println("AudioBook artist: "); - String bArtist = scan.nextLine(); - System.out.println("AudioBook length in seconds: "); - int bLength = Integer.parseInt(scan.nextLine()); - System.out.println("AudioBook content: "); - String bContent = scan.nextLine(); - System.out.println("AudioBook language (french, english, italian, spanish, german)"); - String bLanguage = scan.nextLine(); - AudioBook b = new AudioBook(bTitle, bArtist, bLength, bContent, bLanguage, bCategory); - theHub.addElement(b); - System.out.println("Audiobook created! New element list: "); - Iterator<AudioElement> itl = theHub.elements(); - while (itl.hasNext()) System.out.println(itl.next().getTitle()); - printAvailableCommands(); - choice = scan.nextLine(); - break; + System.out.println("Enter a new audiobook: "); + System.out.println("AudioBook title: "); + String bTitle = scan.nextLine(); + System.out.println("AudioBook category (youth, novel, theater, documentary, speech)"); + String bCategory = scan.nextLine(); + System.out.println("AudioBook artist: "); + String bArtist = scan.nextLine(); + System.out.println("AudioBook length in seconds: "); + int bLength = Integer.parseInt(scan.nextLine()); + System.out.println("AudioBook content: "); + String bContent = scan.nextLine(); + System.out.println("AudioBook language (french, english, italian, spanish, german)"); + String bLanguage = scan.nextLine(); + AudioBook b = new AudioBook(bTitle, bArtist, bLength, bContent, bLanguage, bCategory); + theHub.addElement(b); + LogHandler.write("Audiobook successfully created", "INFO"); + System.out.println("Audiobook created! New element list: "); + Iterator<AudioElement> itl = theHub.elements(); + while (itl.hasNext()) System.out.println(itl.next().getTitle()); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'p': //create a new playlist from existing elements - System.out.println("Add an existing song or audiobook to a new playlist"); - System.out.println("Existing playlists:"); - Iterator<PlayList> itpl = theHub.playlists(); - while (itpl.hasNext()) { - PlayList pl = itpl.next(); - System.out.println(pl.getTitle()); - } - System.out.println("Type the name of the playlist you wish to create:"); - String playListTitle = scan.nextLine(); - PlayList pl = new PlayList(playListTitle); - theHub.addPlaylist(pl); - System.out.println("Available elements: "); + System.out.println("Add an existing song or audiobook to a new playlist"); + System.out.println("Existing playlists:"); + Iterator<PlayList> itpl = theHub.playlists(); + while (itpl.hasNext()) { + PlayList pl = itpl.next(); + System.out.println(pl.getTitle()); + } + System.out.println("Type the name of the playlist you wish to create:"); + String playListTitle = scan.nextLine(); + PlayList pl = new PlayList(playListTitle); + theHub.addPlaylist(pl); + System.out.println("Available elements: "); - Iterator<AudioElement> itael = theHub.elements(); - while (itael.hasNext()) { - AudioElement ae = itael.next(); - System.out.println(ae.getTitle()); - } - while (choice.charAt(0) != 'n') { - System.out.println("Type the name of the audio element you wish to add or 'n' to exit:"); - String elementTitle = scan.nextLine(); + Iterator<AudioElement> itael = theHub.elements(); + while (itael.hasNext()) { + AudioElement ae = itael.next(); + System.out.println(ae.getTitle()); + } + while (choice.charAt(0) != 'n') { + System.out.println("Type the name of the audio element you wish to add or 'n' to exit:"); + String elementTitle = scan.nextLine(); try { - theHub.addElementToPlayList(elementTitle, playListTitle); - } catch (NoPlayListFoundException | NoElementFoundException ex) { - System.out.println(ex.getMessage()); - } + theHub.addElementToPlayList(elementTitle, playListTitle); + } catch (NoPlayListFoundException | NoElementFoundException ex) { + System.out.println(ex.getMessage()); + } - System.out.println("Type y to add a new one, n to end"); - choice = scan.nextLine(); - } - System.out.println("Playlist created!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + System.out.println("Type y to add a new one, n to end"); + choice = scan.nextLine(); + } + LogHandler.write("Playlist successfully created", "INFO"); + System.out.println("Playlist created!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case '-': //delete a playlist - System.out.println("Delete an existing playlist. Available playlists:"); - Iterator<PlayList> itp = theHub.playlists(); - while (itp.hasNext()) { - PlayList p = itp.next(); - System.out.println(p.getTitle()); - } - String plTitle = scan.nextLine(); + System.out.println("Delete an existing playlist. Available playlists:"); + Iterator<PlayList> itp = theHub.playlists(); + while (itp.hasNext()) { + PlayList p = itp.next(); + System.out.println(p.getTitle()); + } + String plTitle = scan.nextLine(); try { - theHub.deletePlayList(plTitle); - } catch (NoPlayListFoundException ex) { - System.out.println(ex.getMessage()); - } - System.out.println("Playlist deleted!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + theHub.deletePlayList(plTitle); + } catch (NoPlayListFoundException ex) { + System.out.println(ex.getMessage()); + } + LogHandler.write("Playlist successfully deleted", "INFO"); + System.out.println("Playlist deleted!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 's': //save elements, albums, playlists - theHub.saveElements(); - theHub.saveAlbums(); - theHub.savePlayLists(); - System.out.println("Elements, albums and playlists saved!"); - printAvailableCommands(); - choice = scan.nextLine(); - break; + theHub.saveElements(); + theHub.saveAlbums(); + theHub.savePlayLists(); + LogHandler.write("Elements, albums and playlists successfully saved", "INFO"); + System.out.println("Elements, albums and playlists saved!"); + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'r': //search a music try { - theHub.searchAudioElement(); + theHub.searchAudioElement(); } - catch (NoElementFoundException e){ - System.err.println(e.getMessage()); + catch (NoElementFoundException e){ + System.err.println(e.getMessage()); } - catch (java.io.FileNotFoundException e){ - System.err.println(e.getMessage()+" Please create a file with the extension .wav inside the song folder at root of the app"); - } - printAvailableCommands(); + catch (java.io.FileNotFoundException e){ + LogHandler.write("Please create a file with the extension .wav inside the song folder at root of the app", "ERROR"); + System.err.println(e.getMessage() + " Please create a file with the extension .wav inside the song folder at root of the app"); + } + printAvailableCommands(); + choice = scan.nextLine(); + break; case 'o': //consult the app logs - LogHandler.read(); - System.out.println("Type h for available commands"); - choice = scan.nextLine(); - break; + LogHandler.read(); + System.out.println("Type h for available commands"); + choice = scan.nextLine(); + break; + case 'm': + //songs of a playlist + System.out.println("Songs of a playlist will be displayed; enter the playlist name, available playlists are:"); + System.out.println(theHub.getPlayListsTitles()); + + playListTitle = scan.nextLine(); + try { + List<AudioElement> songs = theHub.getPlayListSongs(playListTitle); + System.out.println(theHub.getPlayListSongs(playListTitle)); + String song = scan.nextLine(); + theHub.getAudioElement(songs, song); + } catch (NoPlayListFoundException ex) { + LogHandler.write("No playlist found with the requested title", "WARNING"); + System.out.println("No playlist found with the requested title " + ex.getMessage()); + } + printAvailableCommands(); + choice = scan.nextLine(); + break; default: - break; + break; } } - scan.close(); - } + scan.close(); + } private static void printAvailableCommands() { - System.out.println("t: display the album titles, ordered by date"); - System.out.println("g: display songs of an album, ordered by genre"); - System.out.println("d: display songs of an album"); - System.out.println("u: display audiobooks ordered by author"); - System.out.println("r: search audio elements"); - System.out.println("c: add a new song"); - System.out.println("a: add a new album"); - System.out.println("+: add a song to an album"); - System.out.println("l: add a new audiobook"); - System.out.println("p: create a new playlist from existing songs and audio books"); - System.out.println("-: delete an existing playlist"); - System.out.println("s: save elements, albums, playlists"); - System.out.println("o: consult the app logs"); - System.out.println("q: quit program"); - } + System.out.println("t: display the album titles, ordered by date"); + System.out.println("g: display songs of an album, ordered by genre"); + System.out.println("d: display songs of an album"); + System.out.println("u: display audiobooks ordered by author"); + System.out.println("r: search audio elements"); + System.out.println("c: add a new song"); + System.out.println("a: add a new album"); + System.out.println("+: add a song to an album"); + System.out.println("l: add a new audiobook"); + System.out.println("p: create a new playlist from existing songs and audio books"); + System.out.println("m: display songs of a playlist"); + System.out.println("-: delete an existing playlist"); + System.out.println("s: save elements, albums, playlists"); + System.out.println("o: consult the app logs"); + System.out.println("q: quit program"); + } } \ No newline at end of file diff --git a/target/site/jacoco/musichub.main/index.html b/target/site/jacoco/musichub.main/index.html index cd2b4c7..9101830 100644 --- a/target/site/jacoco/musichub.main/index.html +++ b/target/site/jacoco/musichub.main/index.html @@ -1 +1 @@ -musichub.main

      musichub.main

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total625 of 6250 %42 of 420 %31312152153311
      Main6250 %420 %31312152153311
      \ No newline at end of file +musichub.main

      musichub.main

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total722 of 7220 %43 of 430 %32322512513311
      Main7220 %430 %32322512513311
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.main/index.source.html b/target/site/jacoco/musichub.main/index.source.html index 60b6575..a2635d9 100644 --- a/target/site/jacoco/musichub.main/index.source.html +++ b/target/site/jacoco/musichub.main/index.source.html @@ -1 +1 @@ -musichub.main

      musichub.main

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total625 of 6250 %42 of 420 %31312152153311
      Main.java6250 %420 %31312152153311
      \ No newline at end of file +musichub.main

      musichub.main

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total722 of 7220 %43 of 430 %32322512513311
      Main.java7220 %430 %32322512513311
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.util/Policy.html b/target/site/jacoco/musichub.util/Policy.html index 11ce779..e87278e 100644 --- a/target/site/jacoco/musichub.util/Policy.html +++ b/target/site/jacoco/musichub.util/Policy.html @@ -1 +1 @@ -Policy

      Policy

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total53 of 530 %5 of 50 %66202033
      showTerm()390 %50 %44151511
      Policy()70 %n/a112211
      printAgreement()70 %n/a113311
      \ No newline at end of file +Policy

      Policy

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethods
      Total60 of 600 %5 of 50 %66242433
      showTerm()460 %50 %44191911
      Policy()70 %n/a112211
      printAgreement()70 %n/a113311
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.util/Policy.java.html b/target/site/jacoco/musichub.util/Policy.java.html index 2eeb294..9739279 100644 --- a/target/site/jacoco/musichub.util/Policy.java.html +++ b/target/site/jacoco/musichub.util/Policy.java.html @@ -1,9 +1,10 @@ Policy.java

      Policy.java

      package musichub.util;
       
      +import java.io.IOException;
       import java.util.Scanner;
       
       /**
      - * Class ...
      + * Class offering methods to prompt a policy agreement form to the user.
        *
        * @author Anthony BOULANT
        * @version 1.0
      @@ -18,115 +19,59 @@ public final class Policy {
            * @author Anthony BOULANT
            */
       
      -    public Policy() {
      -        throw new AssertionError("You just can't instantiate this class.");
      +    public Policy() {
      +        throw new AssertionError("You just can't instantiate this class.");
           }
       
      +    /**
      +     * Method prompting the whole policy agreement process
      +     *
      +     * @author Anthony BOULANT
      +     */
           public static void showTerm() {
       
      -        String termsAndConditions = "Terms and Conditions\n" +
      -                "\n" +
      -                "\n" +
      -                "In using this website you are deemed to have read and agreed to the following terms and conditions:\n" +
      -                "\n" +
      -                "\n" +
      -                "The following terminology applies to these Terms and Conditions, Privacy Statement and Disclaimer Notice and any or all Agreements: \"Client\", “You” and “Your” refers to you, the person accessing this website and accepting the Company’s terms and conditions. \"The Company\", “Ourselves”, “We” and \"Us\", refers to our Company. “Party”, “Parties”, or “Us”, refers to both the Client and ourselves, or either the Client or ourselves. All terms refer to the offer, acceptance and consideration of payment necessary to undertake the process of our assistance to the Client in the most appropriate manner, whether by formal meetings of a fixed duration, or any other means, for the express purpose of meeting the Client’s needs in respect of provision of the Company’s stated services/products, in accordance with and subject to, prevailing English Law. Any use of the above terminology or other words in the singular, plural, capitalisation and/or he/she or they, are taken as interchangeable and therefore as referring to same.\n" +
      -                "\n" +
      -                "\n" +
      -                "Privacy Statement\n" +
      -                "We are committed to protecting your privacy. Authorized employees within the company on a need to know basis only use any information collected from individual customers. We constantly review our systems and data to ensure the best possible service to our customers. Parliament has created specific offences for unauthorised actions against computer systems and data. We will investigate any such actions with a view to prosecuting and/or taking civil proceedings to recover damages against those responsible\n" +
      -                "\n" +
      -                "\n" +
      -                "Confidentiality\n" +
      -                "We are registered under the Data Protection Act 1998 and as such, any information concerning the Client and their respective Client Records may be passed to third parties. However, Client records are regarded as confidential and therefore will not be divulged to any third party, other than if legally required to do so to the appropriate authorities. Clients have the right to request sight of, and copies of any and all Client Records we keep, on the proviso that we are given reasonable notice of such a request. Clients are requested to retain copies of any literature issued in relation to the provision of our services. Where appropriate, we shall issue Client’s with appropriate written information, handouts or copies of records as part of an agreed contract, for the benefit of both parties.\n" +
      -                "\n" +
      -                "We will not sell, share, or rent your personal information to any third party or use your e-mail address for unsolicited mail. Any emails sent by this Company will only be in connection with the provision of agreed services and products.\n" +
      -                "\n" +
      -                "\n" +
      -                "Disclaimer\n" +
      -                "Exclusions and Limitations \n" +
      -                "The information on this web site is provided on an \"as is\" basis. To the fullest extent permitted by law, this Company:\n" +
      -                "\uF0A7\texcludes all representations and warranties relating to this website and its contents or which is or may be provided by any affiliates or any other third party, including in relation to any inaccuracies or omissions in this website and/or the Company’s literature; and \n" +
      -                "\uF0A7\texcludes all liability for damages arising out of or in connection with your use of this website. This includes, without limitation, direct loss, loss of business or profits (whether or not the loss of such profits was foreseeable, arose in the normal course of things or you have advised this Company of the possibility of such potential loss), damage caused to your computer, computer software, systems and programs and the data thereon or any other direct or indirect, consequential and incidental damages. \n" +
      -                "This Company does not however exclude liability for death or personal injury caused by its negligence. The above exclusions and limitations apply only to the extent permitted by law. None of your statutory rights as a consumer are affected. \n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "Cancellation Policy\n" +
      -                "Minimum 24 hours’ notice of cancellation required. Notification for instance, in person, via email, mobile phone ‘text message’ and/or fax, or any other means will be accepted subject to confirmation in writing. We reserve the right to levy a £30 charge to cover any subsequent administrative expenses.\n" +
      -                "\n" +
      -                "\n" +
      -                "Termination of Agreements and Refunds Policy\n" +
      -                "Both the Client and we have the right to terminate any Services Agreement for any reason, including the ending of services that are already underway. No refunds shall be offered, where a Service is deemed to have begun and is, for all intents and purposes, underway. Any monies that have been paid to us which constitute payment in respect of the provision of unused Services, shall be refunded.\n" +
      -                "\n" +
      -                "\n" +
      -                "Availability \n" +
      -                "Unless otherwise stated, the services featured on this website are only available in France, or in relation to postings from France. All advertising is intended solely for the France market. You are solely responsible for evaluating the fitness for a particular purpose of any downloads, programs and text available through this site. Redistribution or republication of any part of this site or its content is prohibited, including such by framing or other similar or any other means, without the express written consent of the Company. The Company does not warrant that the service from this site will be uninterrupted, timely or error free, although it is provided to the best ability. By using this service you thereby indemnify this Company, its employees, agents and affiliates against any loss or damage, in whatever manner, howsoever caused.\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "Copyright Notice \n" +
      -                "Copyright and other relevant intellectual property rights exists on all text relating to the Company’s services and the full content of this application. \n" +
      -                "\n" +
      -                "\n" +
      -                "Communication\n" +
      -                "We have several different e-mail addresses for different queries. These, & other contact information, can be found on our Contact Us link on our website or via Company literature or via the Company’s stated telephone, facsimile or mobile telephone numbers.\n" +
      -                "\n" +
      -                "\n" +
      -                "Force Majeure\n" +
      -                "Neither party shall be liable to the other for any failure to perform any obligation under any Agreement which is due to an event beyond the control of such party including but not limited to any Act of God, terrorism, war, Political insurgence, insurrection, riot, civil unrest, act of civil or military authority, uprising, earthquake, flood or any other natural or manmade eventuality outside of our control, which causes the termination of an agreement or contract entered into, nor which could have been reasonably foreseen. Any Party affected by such event shall forthwith inform the other Party of the same and shall use all reasonable endeavours to comply with the terms and conditions of any Agreement contained herein.\n" +
      -                "\n" +
      -                "\n" +
      -                "Waiver\n" +
      -                "Failure of either Party to insist upon strict performance of any provision of this or any Agreement or the failure of either Party to exercise any right or remedy to which it, he or they are entitled hereunder shall not constitute a waiver thereof and shall not cause a diminution of the obligations under this or any Agreement. No waiver of any of the provisions of this or any Agreement shall be effective unless it is expressly stated to be such and signed by both Parties.\n" +
      -                "\n" +
      -                "\n" +
      -                "General\n" +
      -                "The laws of France govern these terms and conditions. By accessing this application, you consent to these terms and conditions and to the exclusive jurisdiction of the English courts in all disputes arising out of such access. If any of these terms are deemed invalid or unenforceable for any reason (including, but not limited to the exclusions and limitations set out above), then the invalid or unenforceable provision will be severed from these terms and the remaining terms will continue to apply. Failure of the Company to enforce any of the provisions set out in these Terms and Conditions and any Agreement, or failure to exercise any option to terminate, shall not be construed as waiver of such provisions and shall not affect the validity of these Terms and Conditions or of any Agreement or any part thereof, or the right thereafter to enforce each and every provision. These Terms and Conditions shall not be amended, modified, varied or supplemented except in writing and signed by duly authorised representatives of the Company.\n" +
      -                "\n" +
      -                "\n" +
      -                "Notification of Changes\n" +
      -                "The Company reserves the right to change these conditions from time to time as it sees fit and your continued use of the site will signify your acceptance of any adjustment to these terms. If there are any changes to our privacy policy, we will announce that these changes have been made on our home page and on other key pages on our site. If there are any changes in how we use our site customers’ Personally Identifiable Information, notification by e-mail or postal mail will be made to those affected by this change. Any changes to our privacy policy will be posted on our web site 30 days prior to these changes taking place. You are therefore advised to re-read this statement on a regular basis\n" +
      -                "\n" +
      -                "\n" +
      -                "These terms and conditions form part of the Agreement between the Client and ourselves. Your accessing of this website and/or undertaking of a booking or Agreement indicates your understanding, agreement to and acceptance, of the Disclaimer Notice and the full Terms and Conditions contained herein. Your statutory Consumer Rights are unaffected.    \n" +
      -                "© Company Name 2021 All Rights Reserved\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "\n" +
      -                "\n";
      +        String termsAndConditions = """
      +                Terms and Conditions
      +                In using this website you are deemed to have read and agreed to the following terms and conditions:
      +                Privacy Statement
      +                We are committed to protecting your privacy. Authorized employees within the company on a need to know basis only use any information collected from individual customers. We constantly review our systems and data to ensure the best possible service to our customers. Parliament has created specific offences for unauthorised actions against computer systems and data. We will investigate any such actions with a view to prosecuting and/or taking civil proceedings to recover damages against those responsible
      +                These terms and conditions form part of the Agreement between the Client and ourselves. Your accessing of this website and/or undertaking of a booking or Agreement indicates your understanding, agreement to and acceptance, of the Disclaimer Notice and the full Terms and Conditions contained herein. Your statutory Consumer Rights are unaffected.   s
      +                © Company Name 2021 All Rights Reserved
      +                """;
       
      -        printAgreement();
      -        Scanner scan = new Scanner(System.in);
      -        String choice = scan.nextLine().toLowerCase();
      +        printAgreement();
      +        Scanner scan = new Scanner(System.in);
      +        String choice = scan.nextLine().toLowerCase();
       
      -        while (!choice.equals("y")) {
      -            switch (choice.charAt(0)) {
      -                case 'n' -> System.exit(0);
      -                case 'r' -> {
      -                    System.out.println(termsAndConditions);
      -                    printAgreement();
      -                    choice = scan.nextLine().toLowerCase();
      +        while (!choice.equals("y")) {
      +            switch (choice.charAt(0)) {
      +                case 'n' -> System.exit(0);
      +                case 'r' -> {
      +                    System.out.println(termsAndConditions);
      +                    printAgreement();
      +                    choice = scan.nextLine().toLowerCase();
                       }
      -                default -> {
      -                    printAgreement();
      -                    choice = scan.nextLine().toLowerCase();
      +                default -> {
      +                    printAgreement();
      +                    choice = scan.nextLine().toLowerCase();
                       }
                   }
               }
      -    }
      +        try {
      +            LogHandler.write("Terms accepted by the user.", "INFO");
      +        } catch (IOException e) {
      +            e.printStackTrace();
      +        }
      +    }
       
      +    /**
      +     * Method printing the commands the user can use.
      +     *
      +     * @author Anthony BOULANT
      +     */
           private static void printAgreement() {
      -        System.out.println("By using our app, do you accept our Terms and Conditions ?");
      -        System.out.println("[YES : y    NO :  n    READ : r]");
      -    }
      +        System.out.println("By using our app, do you accept our Terms and Conditions ?");
      +        System.out.println("[YES : y    NO :  n    READ : r]");
      +    }
       }
       
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.util/index.html b/target/site/jacoco/musichub.util/index.html index 936c84a..59a15e9 100644 --- a/target/site/jacoco/musichub.util/index.html +++ b/target/site/jacoco/musichub.util/index.html @@ -1 +1 @@ -musichub.util

      musichub.util

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total59 of 21071 %5 of 944 %617246631214
      Policy530 %50 %6620203311
      XMLHandler66691 %n/a044250401
      LogHandler46100 %n/a030110301
      PathValidation39100 %4100 %040100201
      \ No newline at end of file +musichub.util

      musichub.util

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total66 of 21769 %5 of 944 %617287031214
      Policy600 %50 %6624243311
      XMLHandler66691 %n/a044250401
      LogHandler46100 %n/a030110301
      PathValidation39100 %4100 %040100201
      \ No newline at end of file diff --git a/target/site/jacoco/musichub.util/index.source.html b/target/site/jacoco/musichub.util/index.source.html index b7009ee..f534830 100644 --- a/target/site/jacoco/musichub.util/index.source.html +++ b/target/site/jacoco/musichub.util/index.source.html @@ -1 +1 @@ -musichub.util

      musichub.util

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total59 of 21071 %5 of 944 %617246631214
      Policy.java530 %50 %6620203311
      XMLHandler.java66691 %n/a044250401
      LogHandler.java46100 %n/a030110301
      PathValidation.java39100 %4100 %040100201
      \ No newline at end of file +musichub.util

      musichub.util

      ElementMissed InstructionsCov.Missed BranchesCov.MissedCxtyMissedLinesMissedMethodsMissedClasses
      Total66 of 21769 %5 of 944 %617287031214
      Policy.java600 %50 %6624243311
      XMLHandler.java66691 %n/a044250401
      LogHandler.java46100 %n/a030110301
      PathValidation.java39100 %4100 %040100201
      \ No newline at end of file diff --git a/target/spoteezer-0.1.0-shaded.jar b/target/spoteezer-0.1.0-shaded.jar index 4c8e6af..424434b 100644 Binary files a/target/spoteezer-0.1.0-shaded.jar and b/target/spoteezer-0.1.0-shaded.jar differ diff --git a/target/spoteezer-0.1.0.jar b/target/spoteezer-0.1.0.jar index 4c8e6af..424434b 100644 Binary files a/target/spoteezer-0.1.0.jar and b/target/spoteezer-0.1.0.jar differ diff --git a/target/surefire-reports/TEST-musichub.business.CategoryTest.xml b/target/surefire-reports/TEST-musichub.business.CategoryTest.xml index bb2ca30..e925716 100644 --- a/target/surefire-reports/TEST-musichub.business.CategoryTest.xml +++ b/target/surefire-reports/TEST-musichub.business.CategoryTest.xml @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + diff --git a/target/surefire-reports/TEST-musichub.business.LanguageTest.xml b/target/surefire-reports/TEST-musichub.business.LanguageTest.xml index 5ebb15c..62f74fc 100644 --- a/target/surefire-reports/TEST-musichub.business.LanguageTest.xml +++ b/target/surefire-reports/TEST-musichub.business.LanguageTest.xml @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + diff --git a/target/surefire-reports/TEST-musichub.business.PlayListTest.xml b/target/surefire-reports/TEST-musichub.business.PlayListTest.xml index dde9373..5c92f89 100644 --- a/target/surefire-reports/TEST-musichub.business.PlayListTest.xml +++ b/target/surefire-reports/TEST-musichub.business.PlayListTest.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -56,7 +56,7 @@ - + diff --git a/target/surefire-reports/TEST-musichub.business.SongTest.xml b/target/surefire-reports/TEST-musichub.business.SongTest.xml index 2bfbc93..4623ab2 100644 --- a/target/surefire-reports/TEST-musichub.business.SongTest.xml +++ b/target/surefire-reports/TEST-musichub.business.SongTest.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -55,9 +55,9 @@ - + - + diff --git a/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml b/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml index b5707c9..303888b 100644 --- a/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml +++ b/target/surefire-reports/TEST-musichub.util.LogHandlerTest.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -55,7 +55,7 @@ - - - + + + \ No newline at end of file diff --git a/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml b/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml index 10ec3d9..2ed37c9 100644 --- a/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml +++ b/target/surefire-reports/TEST-musichub.util.PathValidationTest.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + diff --git a/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml b/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml index 3022713..6ee5744 100644 --- a/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml +++ b/target/surefire-reports/TEST-musichub.util.XMLHandlerTest.xml @@ -1,5 +1,5 @@ - + @@ -15,7 +15,7 @@ - + @@ -30,7 +30,7 @@ - + @@ -55,6 +55,6 @@ - + \ No newline at end of file diff --git a/target/surefire-reports/musichub.business.PlayListTest.txt b/target/surefire-reports/musichub.business.PlayListTest.txt index c738c60..7109820 100644 --- a/target/surefire-reports/musichub.business.PlayListTest.txt +++ b/target/surefire-reports/musichub.business.PlayListTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: musichub.business.PlayListTest ------------------------------------------------------------------------------- -Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.018 s - in musichub.business.PlayListTest +Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 s - in musichub.business.PlayListTest diff --git a/target/surefire-reports/musichub.business.SongTest.txt b/target/surefire-reports/musichub.business.SongTest.txt index 4e87759..b940dd9 100644 --- a/target/surefire-reports/musichub.business.SongTest.txt +++ b/target/surefire-reports/musichub.business.SongTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: musichub.business.SongTest ------------------------------------------------------------------------------- -Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 s - in musichub.business.SongTest +Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 s - in musichub.business.SongTest diff --git a/target/surefire-reports/musichub.util.LogHandlerTest.txt b/target/surefire-reports/musichub.util.LogHandlerTest.txt index 14d9938..520c865 100644 --- a/target/surefire-reports/musichub.util.LogHandlerTest.txt +++ b/target/surefire-reports/musichub.util.LogHandlerTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: musichub.util.LogHandlerTest ------------------------------------------------------------------------------- -Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 s - in musichub.util.LogHandlerTest +Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.075 s - in musichub.util.LogHandlerTest diff --git a/target/surefire-reports/musichub.util.PathValidationTest.txt b/target/surefire-reports/musichub.util.PathValidationTest.txt index 39ffd40..73b70d5 100644 --- a/target/surefire-reports/musichub.util.PathValidationTest.txt +++ b/target/surefire-reports/musichub.util.PathValidationTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: musichub.util.PathValidationTest ------------------------------------------------------------------------------- -Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in musichub.util.PathValidationTest +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in musichub.util.PathValidationTest diff --git a/target/surefire-reports/musichub.util.XMLHandlerTest.txt b/target/surefire-reports/musichub.util.XMLHandlerTest.txt index 8938cdc..975dc3e 100644 --- a/target/surefire-reports/musichub.util.XMLHandlerTest.txt +++ b/target/surefire-reports/musichub.util.XMLHandlerTest.txt @@ -1,4 +1,4 @@ ------------------------------------------------------------------------------- Test set: musichub.util.XMLHandlerTest ------------------------------------------------------------------------------- -Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.119 s - in musichub.util.XMLHandlerTest +Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.094 s - in musichub.util.XMLHandlerTest -- cgit v1.2.3