Package com.google.common.collect.testing.features

Examples of com.google.common.collect.testing.features.TesterRequirements


    if (suppressedTests.contains(method)) {
      logger.finer(Platform.format(
          "%s: excluding because it was explicitly suppressed.", test));
      return false;
    }
    final TesterRequirements requirements;
    try {
      requirements = FeatureUtil.getTesterRequirements(method);
    } catch (ConflictingRequirementsException e) {
      throw new RuntimeException(e);
    }
    Set<Feature<?>> missingFeatures =
        Helpers.copyToSet(requirements.getPresentFeatures());
    missingFeatures.removeAll(features);
    if (!missingFeatures.isEmpty()) {
      logger.finer(Platform.format("%s: skipping because these features " +
          "are absent: %s", method, missingFeatures));
      return false;
    }
    Set<Feature<?>> unwantedFeatures =
        Helpers.copyToSet(requirements.getAbsentFeatures());
    unwantedFeatures.retainAll(features);
    if (!unwantedFeatures.isEmpty()) {
      logger.finer(Platform.format("%s: skipping because these features " +
          "are present: %s", method, unwantedFeatures));
      return false;
View Full Code Here


    if (suppressedTests.contains(method)) {
      logger.finer(Platform.format(
          "%s: excluding because it was explicitly suppressed.", test));
      return false;
    }
    final TesterRequirements requirements;
    try {
      requirements = FeatureUtil.getTesterRequirements(method);
    } catch (ConflictingRequirementsException e) {
      throw new RuntimeException(e);
    }
    if (!features.containsAll(requirements.getPresentFeatures())) {
      if (logger.isLoggable(FINER)) {
        Set<Feature<?>> missingFeatures =
            Helpers.copyToSet(requirements.getPresentFeatures());
        missingFeatures.removeAll(features);
        logger.finer(Platform.format(
            "%s: skipping because these features are absent: %s",
           method, missingFeatures));
      }
      return false;
    }
    if (intersect(features, requirements.getAbsentFeatures())) {
      if (logger.isLoggable(FINER)) {
        Set<Feature<?>> unwantedFeatures =
            Helpers.copyToSet(requirements.getAbsentFeatures());
        unwantedFeatures.retainAll(features);
        logger.finer(Platform.format(
            "%s: skipping because these features are present: %s",
            method, unwantedFeatures));
      }
View Full Code Here

    if (suppressedTests.contains(method)) {
      logger.finer(String.format(
          "%s: excluding because it was explicitly suppressed.", test));
      return false;
    }
    final TesterRequirements requirements;
    try {
      requirements = FeatureUtil.getTesterRequirements(method);
    } catch (ConflictingRequirementsException e) {
      throw new RuntimeException(e);
    }
    Set<Feature<?>> missingFeatures =
        Helpers.copyToSet(requirements.getPresentFeatures());
    missingFeatures.removeAll(features);
    if (!missingFeatures.isEmpty()) {
      logger.finer(String.format("%s: skipping because these features " +
          "are absent: %s", method, missingFeatures));
      return false;
    }
    Set<Feature<?>> unwantedFeatures =
        Helpers.copyToSet(requirements.getAbsentFeatures());
    unwantedFeatures.retainAll(features);
    if (!unwantedFeatures.isEmpty()) {
      logger.finer(String.format("%s: skipping because these features " +
          "are present: %s", method, unwantedFeatures));
      return false;
View Full Code Here

    if (suppressedTests.contains(method)) {
      logger.finer(Platform.format(
          "%s: excluding because it was explicitly suppressed.", test));
      return false;
    }
    final TesterRequirements requirements;
    try {
      requirements = FeatureUtil.getTesterRequirements(method);
    } catch (ConflictingRequirementsException e) {
      throw new RuntimeException(e);
    }
    if (!features.containsAll(requirements.getPresentFeatures())) {
      if (logger.isLoggable(FINER)) {
        Set<Feature<?>> missingFeatures =
            Helpers.copyToSet(requirements.getPresentFeatures());
        missingFeatures.removeAll(features);
        logger.finer(Platform.format(
            "%s: skipping because these features are absent: %s",
           method, missingFeatures));
      }
      return false;
    }
    if (intersect(features, requirements.getAbsentFeatures())) {
      if (logger.isLoggable(FINER)) {
        Set<Feature<?>> unwantedFeatures =
            Helpers.copyToSet(requirements.getAbsentFeatures());
        unwantedFeatures.retainAll(features);
        logger.finer(Platform.format(
            "%s: skipping because these features are present: %s",
            method, unwantedFeatures));
      }
View Full Code Here

    if (suppressedTests.contains(method)) {
      logger.finer(String.format(
          "%s: excluding because it was explicitly suppressed.", test));
      return false;
    }
    final TesterRequirements requirements;
    try {
      requirements = FeatureUtil.getTesterRequirements(method);
    } catch (ConflictingRequirementsException e) {
      throw new RuntimeException(e);
    }
    Set<Feature<?>> missingFeatures =
        Helpers.copyToSet(requirements.getPresentFeatures());
    missingFeatures.removeAll(features);
    if (!missingFeatures.isEmpty()) {
      logger.finer(String.format("%s: skipping because these features " +
          "are absent: %s", method, missingFeatures));
      return false;
    }
    Set<Feature<?>> unwantedFeatures =
        Helpers.copyToSet(requirements.getAbsentFeatures());
    unwantedFeatures.retainAll(features);
    if (!unwantedFeatures.isEmpty()) {
      logger.finer(String.format("%s: skipping because these features " +
          "are present: %s", method, unwantedFeatures));
      return false;
View Full Code Here

TOP

Related Classes of com.google.common.collect.testing.features.TesterRequirements

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.