You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ma...@apache.org on 2010/05/08 12:59:11 UTC
svn commit: r942357 - in
/incubator/ace/trunk/ace-util/src/main/java/org/apache/ace/test/constants:
./ TestConstants.java
Author: marrs
Date: Sat May 8 10:59:11 2010
New Revision: 942357
URL: http://svn.apache.org/viewvc?rev=942357&view=rev
Log:
Added test constants to the utils. These constants help with testing, setting up defaults like ports to use.
Added:
incubator/ace/trunk/ace-util/src/main/java/org/apache/ace/test/constants/
incubator/ace/trunk/ace-util/src/main/java/org/apache/ace/test/constants/TestConstants.java
Added: incubator/ace/trunk/ace-util/src/main/java/org/apache/ace/test/constants/TestConstants.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-util/src/main/java/org/apache/ace/test/constants/TestConstants.java?rev=942357&view=auto
==============================================================================
--- incubator/ace/trunk/ace-util/src/main/java/org/apache/ace/test/constants/TestConstants.java (added)
+++ incubator/ace/trunk/ace-util/src/main/java/org/apache/ace/test/constants/TestConstants.java Sat May 8 10:59:11 2010
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.ace.test.constants;
+
+/**
+ * Constants for global test parameters. Use these throughout the test
+ * codebase. Make sure to only use public static finals here, which
+ * can be inlined by the compiler.
+ */
+public interface TestConstants {
+ /** The port the webserver is running on for testing. */
+ public static final int PORT = 9000;
+}