001 /** 002 * Copyright 2005-2013 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 package edu.samplu.travel.krad.test; 017 018 import edu.samplu.common.WebDriverLegacyITBase; 019 import org.junit.Test; 020 021 /** 022 * tests that regex validation works as expected on input fields where it is configured 023 * 024 * @author Kuali Rice Team (rice.collab@kuali.org) 025 */ 026 public class UIFComponentValidationRegexPatternWDIT extends WebDriverLegacyITBase { 027 028 @Override 029 public String getTestUrl() { 030 return "/kr-krad/uicomponents?viewId=UifCompView_KNS&methodToCall=start&readOnlyFields=field91"; 031 } 032 033 @Test 034 public void testValidCharacterConstraint() throws Exception { 035 036 /* 037 * Timestamp pattern validation message says it allows years from 1900 - 2099 038 * In fact it also allows 2999 as the upper limit. This needs to be sorted out. 039 * Test failing this condition is commented in the below code section for Timestamp Validation. Once resolved can be uncommented 040 * 041 */ 042 super.testValidCharacterConstraint(); 043 passed(); 044 } 045 }