Package org.beangle.packagekit.internal

Examples of org.beangle.packagekit.internal.SimpleResource


import org.beangle.packagekit.internal.SimpleResource;

public class MavenUtils {

  public static SimpleResource build(String id) {
    SimpleResource resource = new SimpleResource();
    String name = StringUtils.substringBeforeLast(id, "-");
    resource.setId(id);
    resource.setName(name);
    return resource;
  }
View Full Code Here


@Test
public class MavenResolverTest {

  public void testResolve() {
    Resource resource = new SimpleResource("beangle-packagekit-1.0.0");
    Resolver resolver = new MavenResolver();
    List<Resource> requires = resolver.getRequires(resource);
    assertNotNull(requires);
    assertTrue(requires.size() == 1);
    Resource require = requires.get(0);
View Full Code Here

TOP

Related Classes of org.beangle.packagekit.internal.SimpleResource

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.