SuccessChanges

Summary

  1. Tsk50 Improves the tests coverage and implementations (details)
Commit cb1aabb9409273b00ec5eeccb670e5b53b38e412 by git
Tsk50 Improves the tests coverage and implementations
Adds a new matcher to check if two genres are equals. Modifies also the
story and theme matchers to complete the coverage and use the genre
matcher properly. Removes from the story matcher the relations check
because the themes have no relations. Adds new tests from the StoryRest
to check all the possible combinations of allowed dates. Adds a regular
expresion to check the id in the findById rest method. Modifies the
story text from the JSF to limit the length in the carousel and in the
story card. Adds commentaries to explain the purpose of enumerates.
Fixes the DateRange to prevent that throws a nullPointer if not
specifies range or if the range is Any_Moment because the date is
unlimited. Removes unused constructors from story class and sets
properly the xmlTransient and removes the EAGER initialization and
XmlAccessorType annotation to prevent the lazy initialization exception.
Removes all toString methods from all the classes because may produce a
lazy initialization exception.
The file was modifiedtests/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/entities/IsEqualToTheme.java
The file was modifieddomain/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/enums/DateRange.java
The file was modifieddomain/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/entities/Author.java
The file was modifiedrest/src/test/java/es/uvigo/esei/dgss/teama/microstories/rest/StoryResourceRestTest.java
The file was modifieddomain/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/entities/User.java
The file was modifieddomain/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/enums/Theme.java
The file was modifiedjsf/src/main/webapp/resources/components/carousel.xhtml
The file was modifieddomain/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/entities/Reading.java
The file was modifieddomain/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/entities/Administrator.java
The file was modifieddomain/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/enums/Genre.java
The file was modifiedrest/src/main/java/es/uvigo/esei/dgss/teama/microstories/rest/StoryResource.java
The file was modifiedtests/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/entities/IsEqualToStory.java
The file was modifieddomain/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/entities/Story.java
The file was modifiedjsf/src/main/webapp/resources/components/storyCard.xhtml
The file was addedtests/src/main/java/es/uvigo/esei/dgss/teama/microstories/domain/entities/IsEqualToGenre.java