package com.conveyal.gtfs.storage;

import com.conveyal.gtfs.error.NewGTFSErrorType;

public class ErrorExpectation {
    public NewGTFSErrorType errorType;
    public String badValue;
    public String entityType;
    public String entityId;

    public ErrorExpectation(NewGTFSErrorType errorType) {
        this.errorType = errorType;
    }

    public ErrorExpectation(NewGTFSErrorType errorType, String entityId) {
        this.errorType = errorType;
        this.entityId = entityId;
    }

    public ErrorExpectation(NewGTFSErrorType errorType, String badValue, String entityType, String entityId) {
        this.errorType = errorType;
        this.badValue = badValue;
        this.entityType = entityType;
        this.entityId = entityId;
    }

    public static ErrorExpectation[] list (ErrorExpectation... expectations) {
        return expectations;
    }
}

@@ -79,16 +79,537 @@
 rType;%0A%0A
+/**%0A * Defines the expected values for an error stored in the errors table for a feed in the GTFS database.%0A *%0A * Note: the errors should be listed in order that they are expected to be encountered. Check out%0A * %7B@link com.conveyal.gtfs.loader.JdbcGtfsLoader#loadTables%7D to see the order in which tables are loaded,%0A * %7B@link com.conveyal.gtfs.loader.Feed#validate()%7D to see the order in which validators are called (trip validator%0A * order can be found in %7B@link com.conveyal.gtfs.validator.NewTripTimesValidator%7D).%0A */%0A
 public c
@@ -1263,32 +1263,118 @@
 ntityId;%0A    %7D%0A%0A
+    /**%0A     * Constructs an array of error expectations from the input args.%0A     */%0A
     public stati

add javadoc to ErrorExpectations