Package org.apache.maven.archiva.database

Examples of org.apache.maven.archiva.database.RepositoryDAO.createRepository()


        String repoUri = "file://" + StringUtils.replace( repoDir.getAbsolutePath(), "\\", "/" );
       
        // Create it
        ArchivaRepository repo =
            repoDao.createRepository( "testRepo", "Test Repository", repoUri );
        assertNotNull( repo );

        // Set some mandatory values
        repo.getModel().setCreationSource( "Test Case" );
        repo.getModel().setLayoutName( "default" );
View Full Code Here


        throws ArchivaDatabaseException
    {
        RepositoryDAO repoDao = dao.getRepositoryDAO();

        // Create it
        ArchivaRepository repo = repoDao.createRepository( "testRepo", "Test Repository",
                                                           "http://localhost:8080/repository/foo" );
        assertNotNull( repo );

        // Set some mandatory values
        repo.getModel().setCreationSource( "Test Case" );
View Full Code Here

        String repoUri = "file://" + StringUtils.replace( repoDir.getAbsolutePath(), "\\", "/" );
       
        // Create it
        ArchivaRepository repo =
            repoDao.createRepository( "testRepo", "Test Repository", repoUri );
        assertNotNull( repo );

        // Set some mandatory values
        repo.getModel().setCreationSource( "Test Case" );
        repo.getModel().setLayoutName( "default" );
View Full Code Here

        assertTrue( "Default Test Repository should exist.", repoDir.exists() && repoDir.isDirectory() );

        String repoUri = "file://" + StringUtils.replace( repoDir.getAbsolutePath(), "\\", "/" );

        // Create it
        ArchivaRepository repo = repoDao.createRepository( "testRepo", "Test Repository", repoUri );
        assertNotNull( repo );

        // Set some mandatory values
        repo.getModel().setCreationSource( "Test Case" );
        repo.getModel().setLayoutName( "default" );
View Full Code Here

        throws ArchivaDatabaseException
    {
        RepositoryDAO repoDao = dao.getRepositoryDAO();

        // Create it
        ArchivaRepository repo = repoDao.createRepository( "testRepo", "Test Repository",
                                                           "http://localhost:8080/repository/foo" );
        assertNotNull( repo );

        // Set some mandatory values
        repo.getModel().setCreationSource( "Test Case" );
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.