Coverage Summary for Class: Movie (concept.stc.domain.model)

Class Method, % Line, %
Movie 100% (1/1) 100% (7/7)
Movie$Companion 100% (1/1) 100% (7/7)
Total 100% (2/2) 100% (14/14)


 package concept.stc.domain.model
 
 /**
  * The movie domain model.
  *
  * @param id the movie internal id.
  * @param title the movie title.
  * @param year the movie year.
  * @param imdbId the movie id.
  * @param type the movie type.
  * @param poster the movie poster.
  */
 data class Movie(
     val id: Int,
     val title: String,
     val year: String,
     val imdbId: String,
     val type: String,
     val poster: String
 ) {
     /**
      * Companion helper object.
      */
     companion object {
         /**
          * Creates an empty [Movie] instance useful for testing.
          */
         fun empty() = Movie(
             id = 0,
             title = "",
             year = "",
             imdbId = "",
             type = "",
             poster = ""
         )
     }
 }