public SimpleContainsAssertion(TestAssertionConfig assertionConfig, Assertable assertable) {
    super(assertionConfig, assertable, true, true, true, true);

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
    token = reader.readString("token", null);
    ignoreCase = reader.readBoolean("ignoreCase", false);
    useRegEx = reader.readBoolean("useRegEx", false);
  }
 private void init() {
   XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
   includeGlobal = reader.readBoolean(INCLUDE_GLOBAL, true);
   includeProjectSpecific = reader.readBoolean(INCLUDE_PROJECT_SPECIFIC, true);
   assertionSpecificExposureList =
       StringUtils.toStringList(reader.readStrings(ASSERTION_SPECIFIC_EXPOSURE_LIST));
   extractTokenTable();
 }
Esempio n. 3
0
  /**
   * Constructor for our assertion.
   *
   * @param assertionConfig
   * @param modelItem
   */
  public WSARequestAssertion(TestAssertionConfig assertionConfig, Assertable modelItem) {
    super(assertionConfig, modelItem, false, true, false, true);

    XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
    assertWsaAction = reader.readBoolean("asertWsaAction", true);
    assertWsaTo = reader.readBoolean("asertWsaTo", false);
    assertWsaReplyTo = reader.readBoolean("assertWsaReplyTo", false);
    assertWsaMessageId = reader.readBoolean("assertWsaMessageId", false);
    // assertWsaRelatesTo = reader.readBoolean("asertWsaRelatesTo", false);
    // assertReplyToRefParams = reader.readBoolean("assertReplyToRefParams",
    // false);
    // assertFaultToRefParams = reader.readBoolean("assertFaultToRefParams",
    // false);
    wsaAssertionConfiguration =
        new WsaAssertionConfiguration(
            assertWsaAction,
            assertWsaTo,
            assertWsaReplyTo,
            assertWsaMessageId,
            false,
            false,
            false);
  }