Package org.springframework.boot.loader.archive.Archive

Examples of org.springframework.boot.loader.archive.Archive.Entry


        equalTo(this.rootFolder));
  }

  @Test
  public void getNestedArchive() throws Exception {
    Entry entry = getEntriesMap(this.archive).get("nested.jar");
    Archive nested = this.archive.getNestedArchive(entry);
    assertThat(nested.getUrl().toString(), equalTo("jar:" + this.rootFolder.toURI()
        + "nested.jar!/"));
  }
View Full Code Here


        + "nested.jar!/"));
  }

  @Test
  public void nestedDirArchive() throws Exception {
    Entry entry = getEntriesMap(this.archive).get("d/");
    Archive nested = this.archive.getNestedArchive(entry);
    Map<String, Entry> nestedEntries = getEntriesMap(nested);
    assertThat(nestedEntries.size(), equalTo(1));
    assertThat(nested.getUrl().toString(), equalTo("file:"
        + this.rootFolder.toURI().getPath() + "d/"));
View Full Code Here

    assertThat(url.toString(), equalTo("jar:" + this.rootJarFileUrl + "!/"));
  }

  @Test
  public void getNestedArchive() throws Exception {
    Entry entry = getEntriesMap(this.archive).get("nested.jar");
    Archive nested = this.archive.getNestedArchive(entry);
    assertThat(nested.getUrl().toString(), equalTo("jar:" + this.rootJarFileUrl
        + "!/nested.jar!/"));
  }
View Full Code Here

  }

  @Test
  public void getNestedUnpackedArchive() throws Exception {
    setup(true);
    Entry entry = getEntriesMap(this.archive).get("nested.jar");
    Archive nested = this.archive.getNestedArchive(entry);
    assertThat(nested.getUrl().toString(), startsWith("file:"));
    assertThat(nested.getUrl().toString(), endsWith(".jar"));
  }
View Full Code Here

TOP

Related Classes of org.springframework.boot.loader.archive.Archive.Entry

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.