Coverage Summary for Class: Color (it.polimi.ingsw.model)

Class Class, % Method, % Line, %
Color 100% (1/ 1) 100% (3/ 3) 100% (3/ 3)


1 package it.polimi.ingsw.model; 2  3 public enum Color { 4  WHITE, BROWN, BLUE; 5  6  /** 7  * @param input the str that needed to be converted 8  * @return converted enum element 9  */ 10  11  public static Color strConverter(String input) { 12  return Enum.valueOf(Color.class, input.toUpperCase()); 13  } 14  15 }