/*
 * The MIT License
 *
 * Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package com.tikal.jenkins.plugins.multijob.test;

import hudson.model.AbstractProject;

import org.jvnet.hudson.test.HudsonTestCase;
import org.jvnet.hudson.test.recipes.LocalData;

import com.tikal.jenkins.plugins.multijob.MultiJobBuilder;
import com.tikal.jenkins.plugins.multijob.MultiJobProject;

public class CompatibilityTest extends MultiJobProjectTestCase {

	@LocalData
	public void test() throws Exception {
		AbstractProject p = (AbstractProject) hudson.getItem("old");
		MultiJobProject multiJobprojects = (MultiJobProject) p;
		assertEquals(2, multiJobprojects.getBuilders().size());
		MultiJobBuilder builder = (MultiJobBuilder)multiJobprojects.getBuilders().get(0);
		assertEquals(2, builder.getPhaseJobs().size());
	}

}

@@ -1375,24 +1375,26 @@
 calData;%0D%0A%0D%0A
+//
 import com.t
@@ -1441,16 +1441,18 @@
 ilder;%0D%0A
+//
 import c
@@ -1536,16 +1536,19 @@
 ityTest 
+%7B//
 extends 
@@ -1576,16 +1576,20 @@
 se %7B%0D%0A%0D%0A
+/*%0D%0A
 %09@LocalD
@@ -1955,13 +1955,15 @@
 );%0D%0A%09%7D%0D%0A
+*/
 %0D%0A%7D%0D%0A

Comment the test