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

Class Class, % Method, % Line, %
God 100% (1/ 1) 100% (3/ 3) 100% (6/ 6)


1 package it.polimi.ingsw.model; 2  3 public enum God { 4  /** 5  * List of available gods 6  */ 7  STANDARD, APOLLO, ARTEMIS, ATHENA, ATLAS, DEMETER, HEPHAESTUS, HERA, MEDUSA, MINOTAUR, PAN, POSEIDON, 8  PROMETHEUS, ZEUS, TRITON; 9  10  /** 11  * @param input the string that needs to be converted 12  * @return converted enum element 13  */ 14  15  public static God strConverter(String input) { 16  try { 17  return Enum.valueOf(God.class, input.toUpperCase()); 18  } catch (Exception e) { 19  return null; 20  } 21  } 22 }