Package com.sun.jini.qa.harness

Examples of com.sun.jini.qa.harness.TestException


         * no questions asked. If explicit ports were set in config, then
         * verify that what was started equals what was wanted.
         */
        if(lookupsToStart.size() > 0) {//explicit ports were set in config
            if(!collectionsEqual(lookupsToStart,locatorsStarted)) {
                throw new TestException("locators started != locators "
                                          +"wanted");

            }//endif
        }//endif
        nStarted = genMap.size();
View Full Code Here


            DiscoveryServiceUtil.delayMS(1000);
        }//end loop(timerLoop)
        logger.log(Level.FINE, "DISCOVERY wait period complete");
        /* Verify discovery was successful */
        if(nGoodDiscoverySets != nCurRegistrations) {
            throw new TestException("discovery failed -- "
                                      +"waited "+nSecsToWait1
                                      +" seconds ("+(nSecsToWait1/60)
                                      +" minutes) -- "
                                      +nCurRegistrations
                                      +" registration(s) with lookup "
View Full Code Here

        }//end loop(timerLoop)
        logger.log(Level.FINE, "DISCARD wait period complete -- "
                          +"waited an extra "+n+" seconds");
        /* Verify discard was successful */
        if(nGoodSets != nCurRegistrations) {
            throw new TestException("discard failed -- "
                                      +"waited "
                                      +(nSecsToWait0+nSecsToWait1)
                                      +" seconds ("
                                      +((nSecsToWait0+nSecsToWait1)/60)
                                      +" minutes) -- "
View Full Code Here

            for(int i=0;iter.hasNext();i++) {
                Object key = iter.next();
                String[] groups0 = (String[])newMap0.get(key);
                String[] groups1 = (String[])newMap1.get(key);
                if( (groups0 == null) || (groups1 == null) ) {
                    throw new TestException("failure -- "
                                         +" no mapping for lookup service "+i);
                }
                if( !GroupsUtil.compareGroupSets(groups0,groups1,Level.OFF) ) {
                    GroupsUtil.displayGroupSet(groups0,"groups0",
                                               Level.FINE);
                    GroupsUtil.displayGroupSet(groups1,"groups1",
                                               Level.FINE);
                    throw new TestException("failure -- "
                                   +" groups not equal for lookup service "+i);
                }
            }//end loop
        }//end sync
    }//end testGroupSetContainment
View Full Code Here

      for(int j=0;j<fieldStr[i].length;j++) {
    try {
              fieldValues = proxy.getFieldValues(tmpl,i,fieldStr[i][j]);
              if (!(fieldValuesEqualExpected(fieldValues,i,j)))
        {
                  throw new TestException
                              ("For Attr["+i+"], Field ("+fieldStr[i][j]+
                                                  "): Unexpected Value");
        }
    } catch (NoSuchFieldException e) {  // is this necessary??
              if (!(fieldValuesEqualExpected(fieldValues,i,j)))
        {
                  throw new TestException
                              ("For Attr["+i+"], Field ("+fieldStr[i][j]+
                                                  "): Unexpected Value");
        }
       }
      }
View Full Code Here

         * no questions asked. If explicit ports were set in config, then
         * verify that what was started equals what was wanted.
         */
        if(lookupsToStart.size() > 0) {//explicit ports were set in config
            if(!collectionsEqual(lookupsToStart,locatorsStarted)) {
                throw new TestException("locators started != locators "
                                          +"wanted");

            }//endif
        }//endif
        nStarted = genMap.size();
View Full Code Here

            DiscoveryServiceUtil.delayMS(1000);
        }//end loop(timerLoop)
        logger.log(Level.FINE, "DISCOVERY wait period complete");
        /* Verify discovery was successful */
        if(nGoodDiscoverySets != nCurRegistrations) {
            throw new TestException("discovery failed -- "
                                      +"waited "+nSecsToWait1
                                      +" seconds ("+(nSecsToWait1/60)
                                      +" minutes) -- "
                                      +nCurRegistrations
                                      +" registration(s) with lookup "
View Full Code Here

        }//end loop(timerLoop)
        logger.log(Level.FINE, "DISCARD wait period complete -- "
                          +"waited an extra "+n+" seconds");
        /* Verify discard was successful */
        if(nGoodSets != nCurRegistrations) {
            throw new TestException("discard failed -- "
                                      +"waited "
                                      +(nSecsToWait0+nSecsToWait1)
                                      +" seconds ("
                                      +((nSecsToWait0+nSecsToWait1)/60)
                                      +" minutes) -- "
View Full Code Here

            for(int i=0;iter.hasNext();i++) {
                Object key = iter.next();
                String[] groups0 = (String[])newMap0.get(key);
                String[] groups1 = (String[])newMap1.get(key);
                if( (groups0 == null) || (groups1 == null) ) {
                    throw new TestException("failure -- "
                                         +" no mapping for lookup service "+i);
                }
                if( !GroupsUtil.compareGroupSets(groups0,groups1,Level.OFF) ) {
                    GroupsUtil.displayGroupSet(groups0,"groups0",
                                               Level.FINE);
                    GroupsUtil.displayGroupSet(groups1,"groups1",
                                               Level.FINE);
                    throw new TestException("failure -- "
                                   +" groups not equal for lookup service "+i);
                }
            }//end loop
        }//end sync
    }//end testGroupSetContainment
View Full Code Here

      for(int j=0;j<nAttrClasses;j++){
    classTypes = proxy.getEntryClasses(tmpls[i][j]);
    if (!QATestUtils.classTypesEqualTypeDescriptors(classTypes,
                   expectedTypeDescs[j]))
          {
        throw new TestException("not ALL service type "
              + "descriptors were returned");
    }
      }
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.jini.qa.harness.TestException

Copyright © 2018 www.massapicom. 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.