Author: apetrelli
Date: Tue Jun 23 15:51:08 2009
New Revision: 787734
URL: http://svn.apache.org/viewvc?rev=787734&view=rev
Log:
TILES-432
Polished tiles-test.
Added:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/velocity/package.html
(with props)
Modified:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/factory/TestDbTilesContainerFactory.java
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
Modified:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/factory/TestDbTilesContainerFactory.java
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/factory/TestDbTilesContainerFactory.java?rev=787734&r1=787733&r2=787734&view=diff
==============================================================================
---
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/factory/TestDbTilesContainerFactory.java
(original)
+++
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/factory/TestDbTilesContainerFactory.java
Tue Jun 23 15:51:08 2009
@@ -46,6 +46,11 @@
*/
public class TestDbTilesContainerFactory extends BasicTilesContainerFactory {
+ /**
+ * The number of registered factories.
+ */
+ private static final int FACTORY_SIZE = 4;
+
/** {...@inheritdoc} */
@Override
protected DefinitionDAO<Locale>
createLocaleDefinitionDao(TilesApplicationContext applicationContext,
@@ -70,7 +75,7 @@
protected void registerChainedRequestContextFactories(
ChainedTilesRequestContextFactory contextFactory) {
List<TilesRequestContextFactory> factories = new
ArrayList<TilesRequestContextFactory>(
- 3);
+ FACTORY_SIZE);
registerRequestContextFactory(
"org.apache.tiles.servlet.context.ServletTilesRequestContextFactory",
factories, contextFactory);
Modified:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java?rev=787734&r1=787733&r2=787734&view=diff
==============================================================================
---
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
(original)
+++
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/servlet/SelectLocaleServlet.java
Tue Jun 23 15:51:08 2009
@@ -45,7 +45,7 @@
* The key of the container to use.
*/
private String containerKey;
-
+
/**
* The name of the definition to render.
*/
Added:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/velocity/package.html
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/velocity/package.html?rev=787734&view=auto
==============================================================================
---
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/velocity/package.html
(added)
+++
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/velocity/package.html
Tue Jun 23 15:51:08 2009
@@ -0,0 +1,30 @@
+<!--
+/*
+ * $Id$
+ *
+ * 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.
+ */
+-->
+<html>
+<head>
+ <title>Tiles Velocity test package</title>
+</head>
+<body>
+Velocity tools and utilities.
+</body>
+</html>
\ No newline at end of file
Propchange:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/velocity/package.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
tiles/framework/trunk/tiles-test/src/main/java/org/apache/tiles/test/velocity/package.html
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL