Author: apetrelli
Date: Wed Apr 15 21:11:05 2009
New Revision: 765363
URL: http://svn.apache.org/viewvc?rev=765363&view=rev
Log:
TILES-382
Tests finished!!!
Added:
tiles/framework/trunk/tiles-velocity/src/test/java/org/apache/tiles/velocity/template/TilesVelocityRepositoryTest.java
(with props)
Added:
tiles/framework/trunk/tiles-velocity/src/test/java/org/apache/tiles/velocity/template/TilesVelocityRepositoryTest.java
URL:
http://svn.apache.org/viewvc/tiles/framework/trunk/tiles-velocity/src/test/java/org/apache/tiles/velocity/template/TilesVelocityRepositoryTest.java?rev=765363&view=auto
==============================================================================
---
tiles/framework/trunk/tiles-velocity/src/test/java/org/apache/tiles/velocity/template/TilesVelocityRepositoryTest.java
(added)
+++
tiles/framework/trunk/tiles-velocity/src/test/java/org/apache/tiles/velocity/template/TilesVelocityRepositoryTest.java
Wed Apr 15 21:11:05 2009
@@ -0,0 +1,129 @@
+/**
+ *
+ */
+package org.apache.tiles.velocity.template;
+
+import static org.junit.Assert.*;
+import static org.easymock.classextension.EasyMock.*;
+
+import javax.servlet.ServletContext;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * @author antonio
+ *
+ */
+public class TilesVelocityRepositoryTest {
+
+ /**
+ * The repository to test.
+ */
+ private TilesVelocityRepository repository;
+
+ /**
+ * The servlet context (mocked).
+ */
+ private ServletContext servletContext;
+
+ /**
+ * Sets up the test.
+ */
+ @Before
+ public void setUp() {
+ servletContext = createMock(ServletContext.class);
+
+ replay(servletContext);
+ repository = new TilesVelocityRepository(servletContext);
+ }
+
+ /**
+ * Terminates the test.
+ */
+ @After
+ public void tearDown() {
+ verify(servletContext);
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getAddAttribute()}.
+ */
+ @Test
+ public void testGetAddAttribute() {
+ assertNotNull(repository.getAddAttribute());
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getAddListAttribute()}.
+ */
+ @Test
+ public void testGetAddListAttribute() {
+ assertNotNull(repository.getAddListAttribute());
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getDefinition()}.
+ */
+ @Test
+ public void testGetDefinition() {
+ assertNotNull(repository.getDefinition());
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getGetAsString()}.
+ */
+ @Test
+ public void testGetGetAsString() {
+ assertNotNull(repository.getGetAsString());
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getImportAttribute()}.
+ */
+ @Test
+ public void testGetImportAttribute() {
+ assertNotNull(repository.getImportAttribute());
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getInsertAttribute()}.
+ */
+ @Test
+ public void testGetInsertAttribute() {
+ assertNotNull(repository.getInsertAttribute());
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getInsertDefinition()}.
+ */
+ @Test
+ public void testGetInsertDefinition() {
+ assertNotNull(repository.getInsertDefinition());
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getInsertTemplate()}.
+ */
+ @Test
+ public void testGetInsertTemplate() {
+ assertNotNull(repository.getInsertTemplate());
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getPutAttribute()}.
+ */
+ @Test
+ public void testGetPutAttribute() {
+ assertNotNull(repository.getPutAttribute());
+ }
+
+ /**
+ * Test method for {...@link
org.apache.tiles.velocity.template.TilesVelocityRepository#getPutListAttribute()}.
+ */
+ @Test
+ public void testGetPutListAttribute() {
+ assertNotNull(repository.getPutListAttribute());
+ }
+}
Propchange:
tiles/framework/trunk/tiles-velocity/src/test/java/org/apache/tiles/velocity/template/TilesVelocityRepositoryTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
tiles/framework/trunk/tiles-velocity/src/test/java/org/apache/tiles/velocity/template/TilesVelocityRepositoryTest.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL