Tabnine Logo
CukesRuntimeException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
lv.ctco.cukes.core.CukesRuntimeException
constructor

Best Java code snippets using lv.ctco.cukes.core.CukesRuntimeException.<init> (Showing top 20 results out of 315)

origin: lv.ctco.cukes/cukes-http

public JsonToken peek() {
  try {
    return reader.peek();
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: lv.ctco.cukes/cukes-ldap

public Attribute getAttribute(String attribute) {
  if (entity == null) {
    throw new CukesRuntimeException("Entity was not loaded");
  }
  return entity.get(attribute);
}
origin: ctco/cukes

public Attribute getAttribute(String attribute) {
  if (entity == null) {
    throw new CukesRuntimeException("Entity was not loaded");
  }
  return entity.get(attribute);
}
origin: lv.ctco.cukes/cukes-http

public String nextString() {
  try {
    return reader.nextString();
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: ctco/cukes

public void nextName() {
  try {
    reader.nextName();
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: lv.ctco.cukes/cukes-ldap

public Attribute getNotNullAttribute(String attribute) {
  if (entity == null) {
    throw new CukesRuntimeException("Entity was not loaded");
  }
  Attribute attr = entity.get(attribute);
  assertThat("Expected that attribute '" + attribute + "' will be present", attr, notNullValue());
  return attr;
}
origin: ctco/cukes

public boolean nextBoolean() {
  try {
    return reader.nextBoolean();
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: ctco/cukes

public Attribute getNotNullAttribute(String attribute) {
  if (entity == null) {
    throw new CukesRuntimeException("Entity was not loaded");
  }
  Attribute attr = entity.get(attribute);
  assertThat("Expected that attribute '" + attribute + "' will be present", attr, notNullValue());
  return attr;
}
origin: lv.ctco.cukes/cukes-http

public void nextNull() {
  try {
    reader.nextNull();
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: lv.ctco.cukes/cukes-http

public boolean nextBoolean() {
  try {
    return reader.nextBoolean();
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: lv.ctco.cukes/cukes-http

public void endArray() {
  try {
    reader.endArray();
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: lv.ctco.cukes/cukes-ldap

public void close() {
  if (context != null) {
    try {
      context.close();
    } catch (NamingException e) {
      throw new CukesRuntimeException(e);
    }
  }
  context = null;
}
origin: ctco/cukes

public void close() {
  try {
    reader.close();
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: ctco/cukes

private void addExternalModules() {
  Reflections reflections = new Reflections("lv.ctco.cukes");
  for (Class targetClass : reflections.getTypesAnnotatedWith(CukesInjectableModule.class)) {
    try {
      Constructor<Module> constructor = targetClass.getConstructor();
      Module module = constructor.newInstance();
      addModule(module);
    } catch (Exception e) {
      throw new CukesRuntimeException("Unable to add External Module to Guice");
    }
  }
}
origin: ctco/cukes

public void importLdif(String ldif) {
  try {
    importLdif(new ByteArrayInputStream(ldif.getBytes("UTF-8")));
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: lv.ctco.cukes/cukes-ldap

private void importLdif(InputStream inputStream) {
  try {
    Map<String, Attributes> entities = LDIFUtils.read(inputStream);
    for (Map.Entry<String, Attributes> entry : entities.entrySet()) {
      entityService.createEntity(entry.getKey(), entry.getValue());
    }
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: ctco/cukes

private void importLdif(InputStream inputStream) {
  try {
    Map<String, Attributes> entities = LDIFUtils.read(inputStream);
    for (Map.Entry<String, Attributes> entry : entities.entrySet()) {
      entityService.createEntity(entry.getKey(), entry.getValue());
    }
  } catch (IOException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: lv.ctco.cukes/cukes-ldap

public void importLdifFromFile(String ldifFile) {
  try {
    String path = filePathService.normalize(ldifFile);
    importLdif(new FileInputStream(path));
  } catch (FileNotFoundException e) {
    throw new CukesRuntimeException(e);
  }
}
origin: lv.ctco.cukes/cukes-ldap

  public void modifyByDn(String dn, List<ModificationItem> modificationItems) {
    try {
      LdapContext context = connectionService.getContext();
      context.modifyAttributes(dn, modificationItems.toArray(new ModificationItem[modificationItems.size()]));
    } catch (NamingException e) {
      throw new CukesRuntimeException("Cannot modify entity by dn " + dn, e);
    } finally {
      connectionService.close();
    }
  }
}
origin: lv.ctco.cukes/cukes-http

public void initNewSpecification() {
  try {
    specification = RestAssured.given().config(restConfig.getConfig());
    awaitCondition = null;
    onCreate();
  } catch (Exception e) {
    throw new CukesRuntimeException(e);
  }
}
lv.ctco.cukes.coreCukesRuntimeException<init>

Popular methods of CukesRuntimeException

    Popular in Java

    • Finding current android device location
    • setContentView (Activity)
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • getApplicationContext (Context)
    • SocketException (java.net)
      This SocketException may be thrown during socket creation or setting options, and is the superclass
    • Arrays (java.util)
      This class contains various methods for manipulating arrays (such as sorting and searching). This cl
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • Pattern (java.util.regex)
      Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
    • JCheckBox (javax.swing)
    • Option (scala)
    • Best IntelliJ plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now