0 Replies Latest reply on Dec 8, 2009 3:02 PM by sumit kumar

    Help needed in TestNG + Seam

    sumit kumar Newbie
      Hi All,

      I am trying to run a simple TestNG app but i am stuck in the errors.
      I am using a facade architecture
      adhocinvoice.xml---->adhocinvoicebacking.java--->adhocinvoicefacade (impls)

      Note :--> Even a regular System.out.println("invoking adhocinvoicefacade"); is not getting printed. The problem i think is in some configurations. Please help. Thanks in advance

      ********************Test Class******************

      public class ADHOCInvoiceTest extends SeamTest {
              @Test
              public void test_register() throws Exception {
              new FacesRequest() {
              @Override
              protected void processValidations() throws Exception {
              // Perform Tests
              }
              @Override
              protected void updateModelValues() throws Exception {
              // Perform Tests
              }
              @Override
              protected void invokeApplication() throws Exception {
              // Perform Tests
                      System.out.println("invoking adhocinvoicefacade");
                      ADHOCInvoiceFacade facade= new ADHOCInvoiceFacadeImplMock();
                      //ADHOCInvoiceFacade facade = (ADHOCInvoiceFacade)Component.getInstance("adhocInvoiceFacadeImpl",true);
                      assert true;
                      System.out.println("created adhocinvoicefacade");
              invokeMethod("#{adhocInvoiceBacking.saveAdhocInvoice}");
              }
              @Override
              protected void renderResponse() throws Exception {
              // Perform Tests
              }
              }.run();
              }
             

      }


      *********************LOG**************************
      [Parser] Running:
        D:\TNTworkspace\umbrella-parent\umbrella-war\temp-testng-customsuite.xml

      Inside default constructor PaymentTerms null
      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=persistence.units:jar=classes.jar,unitName=UMBRELLA state=Create
      java.lang.OutOfMemoryError: Java heap space
      FAILED CONFIGURATION: @BeforeSuite startSeam
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}

      jboss.j2ee:jar=classes,name=ADHOCInvoiceFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=AddsectorPlannedDistributionFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=BriefFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=BriefInvoiceFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=BriefProcessFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=ClientFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=ClientLeafletFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=ContractFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=ContractInvoiceFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=ContractSearchFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=CustomerFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=CustomerInvoicePDFImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=CustomerQuotationPDFFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=DdItemBrfFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=DepotFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=DisallowedFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=DistributorFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=FiscalMonthFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=LidlStoreFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=MaintainPricingFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=MaintainPublInvFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=MaintainPurchaseOrderFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=MaintainSlaSettingsFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=MarkPaymentCompleteFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=NewspaperDetailFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=NewspaperFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=NominationDetailsFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=OptRepCustomerContractFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=PaymentCorrectionFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=PeriodRemarksFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=PrinterFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=PublisherFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=QuotationFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=RelationDetailsFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=RuralSectorFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=ScheduleFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=StoreFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}

      jboss.j2ee:jar=classes,name=TimerUtilsFacadeImpl,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **}


      *** CONTEXTS IN ERROR: Name -> Error

      <UNKNOWN> -> ** UNRESOLVED Demands 'persistence.units:jar=classes.jar,unitName=UMBRELLA **

      persistence.units:jar=classes.jar,unitName=UMBRELLA -> java.lang.OutOfMemoryError: Java heap space


              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
              at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
              at org.jboss.embedded.Bootstrap.deployResourceBases(Bootstrap.java:289)
              at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:19)
              at org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNecessary(AbstractSeamTest.java:1025)
              at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:916)
              at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58)
      ... Removed 15 stack frames
      SKIPPED CONFIGURATION: @BeforeClass setupClass
      SKIPPED CONFIGURATION: @BeforeMethod begin
      SKIPPED CONFIGURATION: @AfterMethod end
      SKIPPED CONFIGURATION: @AfterClass cleanupClass
      SKIPPED: test_register

      ===============================================
          uk.co.tntpost.umbrella.test.order.ADHOCInvoiceTest
          Tests run: 1, Failures: 0, Skips: 1
          Configuration Failures: 1, Skips: 4
      ===============================================


      ===============================================
      umbrella-war
      Total tests run: 1, Failures: 0, Skips: 1
      Configuration Failures: 1, Skips: 5
      ===============================================