001    package org.apache.tapestry.contrib.ajax;
002    
003    import org.apache.tapestry.TestBase;
004    import org.testng.annotations.Test;
005    
006    /**
007     * Tests for {@link XTileService}.
008     */
009    @Test
010    public class TestXTileService extends TestBase {
011    
012        public void test_simple_output()
013        {
014            XTileService objService = new XTileService();
015            String result = objService.generateOutputString(new Object[]
016                    { "test > work", new Integer(20) });
017    
018            System.out.println(result);
019            assertTrue(result.contains("<sp>test &gt; work</sp>"));
020            assertTrue(result.contains("<sp>20</sp>"));
021        }
022    }