@ExtendWith(ArtifactManagementTestExecutionListener.class) @Test public void testReadNupkg(@NugetTestArtifact(id = "NUnit", versions = "2.5.9.10348") Path artifactNupkgPath) throws IOException, NugetFormatException { try (InputStream nupkgInputStream = new BufferedInputStream(Files.newInputStream(artifactNupkgPath)); TempNupkgFile nupkgFile = new TempNupkgFile(nupkgInputStream)) { assertThat(nupkgFile.getNuspec()).isNotNull(); } }
public Nuspec getNuspec() { return nuspec; }
TempNupkgFile implements AutoCloseable, Nupkg { public Nuspec getNuspec() { return nuspec; } }
TempNupkgFile implements AutoCloseable, Nupkg { public Nuspec getNuspec() { return nuspec; } TempNupkgFile(InputStream inputStream); }
TempNupkgFile implements AutoCloseable, Nupkg { public Nuspec getNuspec() { return nuspec; } TempNupkgFile(InputStream inputStream); String getHash(); Nuspec getNuspec(); @Override void close(); InputStream getStream(); @Override String getFileName(); @Override Long getSize(); @Override Date getUpdated(); @Override String getId(); @Override SemanticVersion getVersion(); }
TempNupkgFile implements AutoCloseable, Nupkg { public Nuspec getNuspec() { return nuspec; } TempNupkgFile(InputStream inputStream); String getHash(); Nuspec getNuspec(); @Override void close(); InputStream getStream(); @Override String getFileName(); @Override Long getSize(); @Override Date getUpdated(); @Override String getId(); @Override SemanticVersion getVersion();  }