@@ -0,0 +1,2283 @@
+/*%0A * Copyright 2013 Andrew Everitt, Andrew Heckford, Daniele Masato%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage uk.org.raje.maven.plugin.msbuild.configuration;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * Unit tests for BuildPlatform configuration holder%0A */%0Apublic class BuildPlatformTest%0A%7B%0A    /**%0A     * No arg constructor should create a Win32/Release configuration %0A     */%0A    @Test%0A    public void noargConstrutorTest()%0A    %7B%0A        BuildPlatform p = new BuildPlatform();%0A        assertEquals( BuildPlatform.DEFAULT_PLATFORM, p.getName() );%0A        assertEquals( BuildConfiguration.DEFAULT_CONFIGURATION, p.getConfigurations().get( 0 ).getName() );%0A    %7D%0A%0A    /**%0A     * Test that constructing with a name creates a &lt;name&gt;/Release configuration%0A     */%0A    @Test%0A    public void nameConstrutorTest()%0A    %7B%0A        BuildPlatform p = new BuildPlatform( %22myPlatform%22 );%0A        assertEquals( %22myPlatform%22, p.getName() );%0A        assertEquals( BuildConfiguration.DEFAULT_CONFIGURATION, p.getConfigurations().get( 0 ).getName() );%0A    %7D%0A%0A    /**%0A     * Test that toString returns the platform name%0A     */%0A    @Test%0A    public void toStringTest()%0A    %7B%0A        BuildPlatform p = new BuildPlatform();%0A        assertEquals( BuildPlatform.DEFAULT_PLATFORM, p.toString() );%0A    %7D%0A%0A    /**%0A     * Test that platforms are considered equal based on name%0A     */%0A    @Test%0A    public void simpleEqualsTest()%0A    %7B%0A        BuildPlatform p1 = new BuildPlatform( %22one%22 );%0A        BuildPlatform p1Again = new BuildPlatform( %22one%22 );%0A        BuildPlatform p2 = new BuildPlatform( %22two%22 );%0A        %0A        assertEquals( p1, p1Again );%0A        assertTrue( !p1.equals( p2 ) );%0A    %7D%0A%0A%7D%0A

Add unit test for BuildPlatform.