Package javolution.testing

Examples of javolution.testing.AssertionException


    while (it.hasNext()) {
      String p = it.next();
      PartitionDesc desc = work.getPathToPartitionInfo().get(p);
      Map<String, String> spec = desc.getPartSpec();
      if (spec == null) {
        throw new AssertionException("No partition spec found in dynamic pruning");
      }

      String partValueString = spec.get(columnName);
      if (partValueString == null) {
        throw new AssertionException("Could not find partition value for column: " + columnName);
      }

      Object partValue = converter.convert(partValueString);
      if (LOG.isDebugEnabled()) {
        LOG.debug("Converted partition value: " + partValue + " original (" + partValueString + ")");
View Full Code Here


    LOG.info("Source of event: " + sourceName);

    List<SourceInfo> infos = this.sourceInfoMap.get(sourceName);
    if (infos == null) {
      in.close();
      throw new AssertionException("no source info for event source: " + sourceName);
    }

    SourceInfo info = null;
    for (SourceInfo si : infos) {
      if (columnName.equals(si.columnName)) {
        info = si;
        break;
      }
    }

    if (info == null) {
      in.close();
      throw new AssertionException("no source info for column: " + columnName);
    }

    if (skip) {
      info.skipPruning.set(true);
    }
View Full Code Here

TOP

Related Classes of javolution.testing.AssertionException

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.