package com.braintreegateway.integrationtest; import com.braintreegateway.ValidationErrorCode; import org.junit.Test; import static org.junit.Assert.assertEquals; public class ValidationErrorCodeIT { @Test public void findByCode() { assertEquals(ValidationErrorCode.ADDRESS_CANNOT_BE_BLANK, ValidationErrorCode.findByCode("81801")); } @Test public void findByCodeFallsBackWhenNotFound() { assertEquals(ValidationErrorCode.UNKOWN_VALIDATION_ERROR, ValidationErrorCode.findByCode("-9999")); } }