Package models

Examples of models.Project


                .setCredentialsProvider(new UsernamePasswordCredentialsProvider(authId, authPw))
                .call();
    }

    public static void deleteMergingDirectory(PullRequest pullRequest) {
        Project toProject = pullRequest.toProject;
        String directoryForMerging = GitRepository.getDirectoryForMerging(toProject.owner, toProject.name);
        FileUtil.rm_rf(new File(directoryForMerging));
    }
View Full Code Here


    }

    @Test
    public void enrollNotGuest() {
        // Given
        Project project = Project.find.byId(1L);
        User admin = User.find.byId(1L);

        // When
        Result result = callAction(
                routes.ref.EnrollProjectApp.enroll(project.owner, project.name),
View Full Code Here

    }

    @Test
    public void enroll() {
        // Given
        Project project = Project.find.byId(1L);
        User user = User.find.byId(6L);

        // When
        Result result = callAction(
                routes.ref.EnrollProjectApp.enroll(project.owner, project.name),
View Full Code Here

    }

    @Test
    public void enrollDuplicated() {
        // Given
        Project project = Project.find.byId(1L);
        User user = User.find.byId(6L);

        // When
        callAction(
                routes.ref.EnrollProjectApp.enroll(project.owner, project.name),
View Full Code Here

    }

    @Test
    public void cancelEnrollNotGuest() {
        // Given
        Project project = Project.find.byId(1L);
        User admin = User.find.byId(1L);

        // When
        Result result = callAction(
                routes.ref.EnrollProjectApp.cancelEnroll(project.owner, project.name),
View Full Code Here

    }

    @Test
    public void cancelEnroll() {
        // Given
        Project project = Project.find.byId(1L);
        User user = User.find.byId(6L);

        // When
        Result result = callAction(
                routes.ref.EnrollProjectApp.cancelEnroll(project.owner, project.name),
View Full Code Here

public class PropertiesEnhancerTest extends FunctionalTest {

    @Test
    public void testEnhancerMethods() throws Exception {
  Project obj = new Project();
  // get all of the properties for a POJO
  PropertyDescriptor[] descriptors = PropertyUtils
    .getPropertyDescriptors(obj);
     
        //master version also reports JPAContext, probably due to other multidb impl
View Full Code Here

  return false;
    }

    @Test
    public void testEnhancerProperty() throws Exception {
  Project obj = new Project();
  obj.name = "toto";
  Object value = PropertyUtils.getProperty(obj, "name");

  assertNotNull(value);
  assertEquals("toto", value);
View Full Code Here

TOP

Related Classes of models.Project

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.