001/** 002 * Copyright 2005-2014 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 */ 016package org.kuali.rice.krad.test; 017 018/** 019 * Provides centralized storage of constants that occur throughout the tests 020 * 021 * @author Kuali Rice Team (rice.collab@kuali.org) 022 */ 023public final class KRADTestConstants { 024 025 public static final String TEST_NAMESPACE_CODE = "TEST"; 026 027 public static final class TestConstants { 028 029 private static final String HOST = "localhost"; 030 private static final String PORT = "8080"; 031 public static final String BASE_PATH = "http://" + HOST + ":" + PORT + "/"; 032 public static final String MESSAGE = 033 "JUNIT test entry. If this exist after the tests are not cleaning up correctly. Created by class"; 034 035 private TestConstants() { 036 throw new UnsupportedOperationException("do not call"); 037 } 038 } 039 040 public static final class DataAttributesConstants { 041 042 public static final String PARENT = "parent"; 043 } 044 045 public static final class CssClassNames { 046 047 public static final String INPUT_FIELD = "uif-inputField"; 048 public static final String HORIZONTAL_FIELD_GROUP = "uif-horizontalFieldGroup"; 049 public static final String ACTION_COLUMN = "uif-collection-column-action"; 050 public static final String ADD_LINE_ROW = "uif-collectionAddItem"; 051 public static final String MODAL_DIALOG_BODY = "modal-body"; 052 public static final String MODAL_DIALOG_FOOTER = "modal-footer"; 053 public static final String MODAL_DIALOG_HEADER = "modal-header"; 054 public static final String ROW_DETAILS_GROUP = "uif-rowDetails"; 055 public static final String SUB_COLLECTION = "uif-subCollection"; 056 } 057 058 private KRADTestConstants() { 059 throw new UnsupportedOperationException("do not call"); 060 } 061}