View Javadoc

1   /*
2    * To change this template, choose Tools | Templates
3    * and open the template in the editor.
4    */
5   package fr.paris.lutece.plugins.updater.service.catalog;
6   
7   import fr.paris.lutece.test.LuteceTestCase;
8   
9   import java.util.List;
10  
11  
12  /**
13   * CatalogService Test
14   */
15  public class CatalogServiceTest extends LuteceTestCase
16  {
17      public CatalogServiceTest( String testName )
18      {
19          super( testName );
20      }
21  
22      /**
23       * Test of getCatalogInfos method, of class CatalogService.
24       */
25      public void testGetCatalogInfos(  )
26      {
27          System.out.println( "getCatalogInfos" );
28  
29          CatalogService instance = new CatalogService(  );
30          List<CatalogInfos> list = instance.getCatalogInfos(  );
31  
32          for ( CatalogInfos ci : list )
33          {
34              System.out.println( ci.getPluginName(  ) + " " + ci.getVersion(  ) + " " + ci.getDescription(  ) );
35          }
36  
37          assertTrue( list.size(  ) > 0 );
38      }
39  }