Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ bin-debug
bin
.sourceMate
.FlexUnitSettings
src/FlexUnitApplication.mxml
src/FlexUnitApplication.mxml
*.iml
*.ipr
124 changes: 124 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>watercolor</groupId>
<artifactId>watercolor</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>swc</packaging>

<name>watercolor Flex</name>

<properties>
<flex.version>4.1.0.16076</flex.version>
<flexunit.version>4.1-RC2</flexunit.version>
</properties>

<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.9</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>${flex.version}</version>
<type>pom</type>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>${flex.version}</version>
<type>pom</type>
</dependency>

<dependency>
<groupId>com.adobe.flexunit</groupId>
<artifactId>flexunit</artifactId>
<version>${flexunit.version}</version>
<type>swc</type>
<scope>test</scope>
</dependency>
</dependencies>

<repositories>
<repository>
<id>flex-mojos-repository</id>
<url>http://repository.sonatype.org/content/groups/flexgroup</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>cairngorm3-repository</id>
<url>http://opensource.adobe.com/svn/opensource/cairngorm3/maven-repository</url>
</repository>

</repositories>

<pluginRepositories>
<pluginRepository>
<id>flex-mojos-repository</id>
<url>http://repository.sonatype.org/content/groups/flexgroup</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

<profiles>
<profile><!--https://docs.sonatype.org/pages/viewpage.action?pageId=2949459-->
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.maven.ide.eclipse</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>0.9.9-SNAPSHOT</version>
<configuration>
<mappingId>customizable</mappingId>
<configurators>
<configurator id='org.maven.ide.eclipse.configuration.flex.configurator' />
</configurators>
<mojoExecutions>
<mojoExecution>org.apache.maven.plugins:maven-resources-plugin::</mojoExecution>
</mojoExecutions>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>

</project>
34 changes: 0 additions & 34 deletions src/flexUnitTests/WatercolorTestSuite.as

This file was deleted.

File renamed without changes.
34 changes: 34 additions & 0 deletions src/test/flex/flexUnitTests/WatercolorTestSuite.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package flexUnitTests
{
import flexUnitTests.commands.execUtils.*;
import flexUnitTests.factories.fxg.FXGToSparkFactoryTest;
import flexUnitTests.factories.svg.SVGToSparkFactoryTest;
import flexUnitTests.managers.HistoryManagerTest;
import flexUnitTests.utils.TransformUtilTest;

[Suite]
[RunWith("org.flexunit.runners.Suite")]
public class WatercolorTestSuite
{

public var arrangeExecuteTests:ArrangeExecuteTest;

public var createExecuteTests:CreateExecuteTest;

public var deleteExecuteTests:DeleteExecuteTest;

public var historyManagerTests:HistoryManagerTest;

public var propertyExecuteTests:PropertyExecuteTest;

public var transformExecuteTests:TransformExecuteTest;

public var groupExecuteTests:GroupExecuteTest;

public var svgToSparkFactoryTests:SVGToSparkFactoryTest;

public var fxgToSparkFactoryTests:FXGToSparkFactoryTest;

public var transformUtilTests:TransformUtilTest;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package flexUnitTests.commands.execUtils
import watercolor.elements.Element;
import watercolor.elements.Rect;

public class ArrangeExecuteTests
public class ArrangeExecuteTest
{
public var element:Element;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package flexUnitTests.commands.execUtils
import watercolor.elements.Layer;
import watercolor.elements.Rect;

public class CreateExecuteTests
public class CreateExecuteTest
{
public var element:Element;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package flexUnitTests.commands.execUtils
import watercolor.elements.Element;
import watercolor.elements.Rect;

public class DeleteExecuteTests
public class DeleteExecuteTest
{

public var vo:DeleteVO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package flexUnitTests.commands.execUtils
{
public class GroupExecuteTests
public class GroupExecuteTest
{
//TODO: Add Unit Tests for GroupExecute

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ package flexUnitTests.commands.execUtils

import mx.core.IVisualElement;

import org.hamcrest.mxml.object.Null;

import watercolor.utils.ExecuteUtil;
import watercolor.commands.vo.PropertyVO;
import watercolor.elements.Element;
import watercolor.elements.Rect;

public class PropertyExecuteTests
public class PropertyExecuteTest
{
public var vo:PropertyVO;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package flexUnitTests.commands.execUtils
import watercolor.elements.Rect;
import watercolor.utils.ExecuteUtil;

public class TransformExecuteTests
public class TransformExecuteTest
{
public var element:Rect;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package flexUnitTests.factories.fxg
import watercolor.factories.fxg.RectFactory;
import watercolor.factories.fxg.util.URIManager;

public class FXGToSparkFactoryTests
public class FXGToSparkFactoryTest
{
[Before]
public function setUp():void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ package flexUnitTests.factories.svg
import watercolor.factories.svg.graphics.RadialGradientFactory;
import watercolor.factories.svg.util.URIManager;

public class SVGToSparkFactoryTests
public class SVGToSparkFactoryTest
{
[Before]
public function setUp():void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package flexUnitTests.managers
import watercolor.elements.Rect;
import watercolor.managers.HistoryManager;

public class HistoryManagerTests
public class HistoryManagerTest
{
private var historyManager:HistoryManager;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ package flexUnitTests.utils
import watercolor.utils.TransformUtil;


public class TransformUtilTests
public class TransformUtilTest
{
private var element:Element;

Expand Down