assertEquals(2, StringUtils.split("hel|lo", "|").length);
assertEquals(2, StringUtils.split("hel||lo", "|").length);
}
public void testClassworldSeftFirstStrategy() throws Exception {
ClassWorld w = new ClassWorld("zero", null);
ClassRealm rMojo = w.newRealm("mojo", getClass().getClassLoader());
Strategy s = new SelfFirstStrategy(w.newRealm("scalaScript", null));
ClassRealm rScript = s.getRealm();
rScript.setParentClassLoader(getClass().getClassLoader());
rScript.importFrom("mojo", MavenProject.class.getPackage().getName());
rScript.importFrom("mojo", MavenSession.class.getPackage().getName());
rScript.importFrom("mojo", Log.class.getPackage().getName());