Examples of NugetClient


Examples of ru.aristar.jnuget.client.NugetClient

                ClientResponse.Status.OK,
                new String[][]{
                    new String[]{"Content-Type", "application/xml"}
                });
        createHttpServer(c1, c2, c3);
        NugetClient nugetClient = new NugetClient();
        nugetClient.setUrl("http://localhost:1234");
        //WHEN
        PackageFeed result = nugetClient.getPackages(null, null, 100, null, 0);
        //THEN
        assertThat(result.getEntries().size(), is(equalTo(26)));
    }
View Full Code Here

Examples of ru.aristar.jnuget.client.NugetClient

                ClientResponse.Status.OK,
                new String[][]{
                    new String[]{"Content-Type", "application/xml"}
                });
        createHttpServer(c1, c2, c3);
        NugetClient nugetClient = new NugetClient();
        nugetClient.setUrl("http://localhost:1234");
        //WHEN
        TempNupkgFile result = nugetClient.getPackage("NUnit", Version.parse("2.5.9.10348"));
        //THEN
        assertThat(result.getId(), is(equalTo("NUnit")));
        assertThat(result.getVersion(), is(equalTo(Version.parse("2.5.9.10348"))));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.