Package ch.inftec.ju.util

Examples of ch.inftec.ju.util.JuRuntimeException


          }

          // Run update
          liquibase.update((String)null);
        } catch (Exception ex) {
          throw new JuRuntimeException("Couldn't run Liquibase Update %s", ex, changeLogResourceName);
        }
      }
    });
  }
View Full Code Here


        XString xs = new XString();
        this.parentRunner.printDependencyReport(xs);
        logger.info("DataSetExport Suite dependency information: \n\n" + xs.toString());

        if (this.parentRunner.hasCyclicDependencies()) {
          throw new JuRuntimeException("Cyclic dependencies detected. Check log for details.");
        }
      } catch (JuRuntimeException ex) {
        throw ex;
      } catch (Exception ex) {
        throw new JuRuntimeException("Couldn't initialize RootSuite", ex);
      }
    } else {
      logger.debug("No RootSuite specified");

      throw new JuRuntimeException("DataSetExportSuite without RootSuite annotation not supported yet");
    }
  }
View Full Code Here

        // Now, we can sort the list
        logger.debug("Sorting runner " + this.originalRunner.getDescription().getDisplayName());
        this.sort(this.reorderedChildren);
      } catch (Exception ex) {
        throw new JuRuntimeException("Couldn't reorganize children for " + this.originalRunner.getDescription().getDisplayName(),
            ex);
      }
    }
View Full Code Here

        Method m = ReflectUtils.getDeclaredMethodInherited(this.originalRunner.getClass(), "describeChild",
            new Class<?>[] { Object.class });
        m.setAccessible(true);
        return (Description) m.invoke(this.originalRunner, child);
      } catch (Exception ex) {
        throw new JuRuntimeException("Couldn't invoke describeChild of base parent runner", ex);
      }
    }
View Full Code Here

        Method m = ReflectUtils.getDeclaredMethodInherited(this.originalRunner.getClass(), "runChild", new Class<?>[] {
            Object.class, RunNotifier.class });
        m.setAccessible(true);
        m.invoke(this.originalRunner, child, notifier);
      } catch (Exception ex) {
        throw new JuRuntimeException("Couldn't invoke runChild of base parent runner", ex);
      }
    }
View Full Code Here

 
  private Class<?> getTestClass() {
    try {
      return Class.forName(this.testClassName);
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't get test class. Make sure it's on the classpath: " + this.testClassName);
    }
  }
View Full Code Here

      url = JuUrl.resource().relativeTo(this.getTestClass()).get(actualResource);
      if (url == null) url = JuUrl.resource(actualResource);
    }
   
    if (url == null) {
      throw new JuRuntimeException(String.format("Couldn't find resource %s, relative to class %s"
          , actualResource
          , this.getTestClass()));
    }
   
    return url;
View Full Code Here

        info.resourceDir = (String) DataSetConfig.class.getMethod("resourceDir").getDefaultValue();
        info.resourcePrefix = (String) DataSetConfig.class.getMethod("resourcePrefix").getDefaultValue();
        info.loadImportResourcesFromFileSystem = (Boolean) DataSetConfig.class.getMethod("loadImportResourcesFromFileSystem")
            .getDefaultValue();
      } catch (Exception ex) {
        throw new JuRuntimeException("Couldn't get default values for DataSetConfig annotation", ex);
      }
    }

    return info;
  }
View Full Code Here

 
  private Class<?> getTestClass() {
    try {
      return Class.forName(this.testClassName);
    } catch (Exception ex) {
      throw new JuRuntimeException("Couldn't get test class. Make sure it's on the classpath: " + this.testClassName);
    }
  }
View Full Code Here

                : "";
           
            logger.debug("Setting system property for test context: {}={}", key, val);
            tempSetter.setProperty(key, val);
          } else {
            throw new JuRuntimeException("SystemProperty String must be of type key=val, but was: %s", keyValStr);
          }
        }
      }
    } catch (Exception ex) {
      // When an exception occurrs, make sure we reset the properties to their original values
View Full Code Here

TOP

Related Classes of ch.inftec.ju.util.JuRuntimeException

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.