Skip to content

Commit

Permalink
revert changes made in r809963 (CONTINUUM-2347)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jevica Arianne B. Zurbano committed Oct 13, 2009
1 parent 93a4d61 commit a626cb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
Expand Up @@ -66,7 +66,7 @@ public class AddProjectAction

private Collection<ProjectGroup> projectGroups;

private static int selectedProjectGroup;
private int selectedProjectGroup;

private String projectGroupName;

Expand Down Expand Up @@ -144,11 +144,6 @@ public String add()
addActionError( authzE.getMessage() );
return REQUIRES_AUTHORIZATION;
}

if ( this.getSelectedProjectGroup() == 0 )
{
return INPUT;
}

String projectNameTrim = projectName.trim();
String versionTrim = projectVersion.trim();
Expand Down Expand Up @@ -226,8 +221,6 @@ public String input()
}

projectGroups = new ArrayList<ProjectGroup>();

selectedProjectGroup = 0;

Collection<ProjectGroup> allProjectGroups = getContinuum().getAllProjectGroups();

Expand Down
Expand Up @@ -65,30 +65,6 @@ public void testAddProjectNullValues()
action.validate();
}

/**
* Test add of project with no project groups available
*
* @throws Exception
*/
public void testAddProjectNoProjectGroups()
throws Exception
{
Collection<ProjectGroup> projectGroups = new ArrayList<ProjectGroup>();

String scmUrl = "scm:svn:http://project/scm/url/test/build.xml";
action.setProjectGroups( projectGroups );

List<Project> projects = createProjectList();

action.setProjectName( "Ant Test Project" );
action.setProjectVersion( "1.0-SNAPSHOT" );
action.setProjectScmUrl( scmUrl );
action.setProjectType( "ant" );
action.setBuildDefintionTemplateId( 1 );

assertEquals( action.add(), "input" );
}

/**
* Test add of Ant project
*
Expand Down

0 comments on commit a626cb1

Please sign in to comment.