Examples of check()


Examples of net.csdn.modules.controller.QpsManager.check()

        ServiceFramwork.injector.getInstance(API.class).qpsIncrement(processInfo.method);

        boolean qpsLimitEnable = settings.getAsBoolean("qpslimit.enable", false);
        if (qpsLimitEnable) {
            QpsManager qpsManager = ServiceFramwork.injector.getInstance(QpsManager.class);
            if (qpsManager.check(request.getRequestURI())) {
                logger.error("qps 限流");
                throw new RuntimeException("qps-overflow");
            }
        }
    }
View Full Code Here

Examples of net.mindengine.galen.validation.PageValidation.check()

   
    @Test(dataProvider="provideGoodSamples")
    public void shouldPassValidation(Spec spec, MockedPage page) {
        PageSpec pageSpec = createMockedPageSpec(page);
        PageValidation validation = new PageValidation(null, page, pageSpec, null, null);
        ValidationError error = validation.check("object", spec);
       
        assertThat(error, is(nullValue()));
    }
   
    private BufferedImage loadTestImage(String imagePath) {
View Full Code Here

Examples of net.mindengine.galen.validation.SectionValidation.check()

       
        SectionValidation sectionValidation = new SectionValidation(componentPageSpec.findSections(pageValidation.getSectionFilter()),
                new PageValidation(pageValidation.getBrowser(), objectContextPage, componentPageSpec, validationListener, pageValidation.getSectionFilter()),
                validationListener);
       
        List<ValidationError> errors = sectionValidation.check();
        if (errors != null && errors.size() > 0) {
            throw new ValidationErrorException("Child component spec contains " + errors.size() + " errors");
        }
    }
View Full Code Here

Examples of net.sf.joafip.export_import.Class1ForExportImportTest.check()

    container.work();

    check(dataAccessSession, true);

    Class1ForExportImportTest forExportImportTest = new Class1ForExportImportTest();
    forExportImportTest.check();
    dataAccessSession.setObject("object", forExportImportTest);

    dataAccessSession.close(EnumFilePersistenceCloseAction.SAVE);

    dataAccessSession.open();
View Full Code Here

Examples of net.sf.joafip.export_import.ExternalizableClass1ForExportImportTest.check()

      externalizableForExportImportTest
          .setInt4(Class1ForExportImportTest.INT1_VALUE);
    }
    assertTrue(
        "check on restored externalizableForExportImportTest failed",
        externalizableForExportImportTest.check());
  }
}
View Full Code Here

Examples of net.sf.joafip.export_import.Serializable1Class1ForExportImportTest.check()

          serializable1ForExportImportTest.getInt4());
      serializable1ForExportImportTest
          .setInt4(Class1ForExportImportTest.INT1_VALUE);
    }
    assertTrue("check on restored serializable1ForExportImportTest failed",
        serializable1ForExportImportTest.check());

    // check serializable2ForExportImportTest

    final Serializable2Class1ForExportImportTest serializable2ForExportImportTest =
    /**/(Serializable2Class1ForExportImportTest) dataAccessSession
View Full Code Here

Examples of net.sf.joafip.export_import.Serializable2Class1ForExportImportTest.check()

          serializable2ForExportImportTest.getInt4());
      serializable2ForExportImportTest
          .setInt4(Class1ForExportImportTest.INT1_VALUE);
    }
    assertTrue("check on restored serializable2ForExportImportTest failed",
        serializable2ForExportImportTest.check());

    // check serializable3ForExportImportTest
    final Serializable3Class1ForExportImportTest serializable3ForExportImportTest =
    /**/(Serializable3Class1ForExportImportTest) dataAccessSession
        .getObject("object4");
View Full Code Here

Examples of net.sf.joafip.export_import.Serializable3Class1ForExportImportTest.check()

          serializable3ForExportImportTest.getInt4());
      serializable3ForExportImportTest
          .setInt4(Class1ForExportImportTest.INT1_VALUE);
    }
    assertTrue("check on restored serializable3ForExportImportTest failed",
        serializable3ForExportImportTest.check());

    // check externalizableForExportImportTest
    final ExternalizableClass1ForExportImportTest externalizableForExportImportTest =
    /**/(ExternalizableClass1ForExportImportTest) dataAccessSession
        .getObject("object5");
View Full Code Here

Examples of net.sf.parteg.base.testcasegraph.helperclasses.BasicDistanceSetter.check()

  public void setDistancesToInit()
  {
    // start at each initial node and set the distance to this node for each encountered node
    BasicDistanceSetter oSetter = new BasicDistanceSetter(m_oTCG);
    oSetter.act();
    oSetter.check();
  }
 
  public void flattenStateMachine(boolean in_bUseStateComposition) throws Exception
  {
    TestCaseGraphFlattener oFlattener =
View Full Code Here

Examples of net.sf.sahi.client.ElementStub.check()

    if ( !StringUtils.equalsIgnoreCase( TYPE, element.getAttribute( "type" ) ) ) {
      throw new RuntimeException( "Element is not a checkbox: " + descriptor );
    }

    if ( StringUtils.startsWithIgnoreCase( descriptor.getValue(), CHECKED ) ) {
      element.check();
    }
    else {
      element.uncheck();
    }
  }
View Full Code Here
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.