Package uk.org.woodcraft.bookings

Source Code of uk.org.woodcraft.bookings.BookedUnitsReportTest

package uk.org.woodcraft.bookings;

import static junit.framework.Assert.assertEquals;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;

import org.junit.Test;

import uk.org.woodcraft.bookings.reports.BookedUnitsReport;
import uk.org.woodcraft.bookings.test.BaseFixtureTestCase;
import uk.org.woodcraft.bookings.test.TestFixture;


public class BookedUnitsReportTest extends BaseFixtureTestCase{

  public BookedUnitsReportTest() {
    super(TestFixture.BASIC_DATA);
  }
 
  @Test
  public void testGetHeaders()
  {
    BookedUnitsReport report = new BookedUnitsReport();
    List<Method> methods = report.getReportedMethods(null);
    List<String> headers = report.getHeaders(null, methods);
    /*
    for(String header : headers)
      System.out.print(header + "\",\"");
    */
    String[] expectedHeaders = {"Name","Organisation","Email","Phone","Address","NotesString",
        //"EstimateWoodchip","EstimateElfin","EstimatePioneer",
        "EstimateVenturer","EstimateDF",
        "EstimateAdult","EquipmentKitchen","EquipmentTables","EquipmentBenches","EquipmentLighting",
        "EquipmentOther","CanvasMarquee","CanvasKitchen","CanvasStore","CanvasOther","LargeCanvasTown",
        "LargeCanvasActivity","LargeCanvasCafe","LargeCanvasOther","SharedCanvas", "SharedEquipment","VillagePartner","Delegation","Key", "Village", "VillageWebKey"};
   
   
    assertEquals(Arrays.asList(expectedHeaders), headers);
  }
 
  @Test
  public void testGenerateSimpleReport()
  {
    BookedUnitsReport report = new BookedUnitsReport();
   
    report.getResults(null);
  }
 
 

}
TOP

Related Classes of uk.org.woodcraft.bookings.BookedUnitsReportTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.