src/main/java/seedu/insurancepal/model/util/SampleDataUtil.java
/**
     * Returns an Insurance, assumed to be valid
     */
Returns an Insurance, assumed to be valid
Returns an Insurance assumed to be valid
public static Insurance ofValidInsurance(String insuranceName) {
        for (InsuranceType type : InsuranceType.values()) {
            if (type.getTypeName().equalsIgnoreCase(insuranceName)) {
                return new Insurance(type, "");
            }
        }
        assert false; 
        return null;
    }
public static Insurance ofValidInsurance ( String insuranceName ) { for ( InsuranceType type : InsuranceType . values ( ) ) { if ( type . getTypeName ( ) . equalsIgnoreCase ( insuranceName ) ) { return new Insurance ( type , "" ) ; } } assert false ; return null ; }
Returns an Insurance, assumed to be valid
Returns an Insurance assumed to be valid
// This shouldn't happen in testing