I have started a project from scratch and I have this error:

ArgumentError: Error #1063: (mismatch of argument recount in )
Discordancia del recuento de argumentos en
org.sonatype.flexmojos.unitestingsupport::ControlSocket/connect().
(Expected 1 and obtain 0)Se esperaba 1 y se obtuvo 0.
        at org.sonatype.flexmojos.unitestingsupport::TestApplication/
runTests()[/home/nexus/flexmojos/3.x/target/checkout/flexmojos-testing/
flexmojos-unittest-support/src/main/flex/org/sonatype/flexmojos/
unitestingsupport/TestApplication.as:52]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private_beta
\frameworks\projects\framework\src\mx\core\UIComponent.as:12977]
        at mx.core::UIComponent/set initialized()[E:\dev\hero_private_beta
\frameworks\projects\framework\src\mx\core\UIComponent.as:1757]
        at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev
\hero_private_beta\frameworks\projects\framework\src\mx\managers
\LayoutManager.as:819]
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev
\hero_private_beta\frameworks\projects\framework\src\mx\managers
\LayoutManager.as:1157]

My pom is


<?xml version="1.0" encoding="UTF-8"?>
  <!--

    Copyright 2008 Marvin Herman Froeder
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
    See the License for the specific language governing permissions
and
    limitations under the License.

-->
<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>com.wip</groupId>
  <artifactId>commons</artifactId>
  <version>3.0-SNAPSHOT</version>
  <packaging>swc</packaging>

  <name>Common Client</name>

        <properties>
                <flashPlayer.command>D:\Desarrollo\flashplayer_10_sa_debug.exe</
flashPlayer.command>
                <flex.version>4.1.0.16076</flex.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.8</version>
        <extensions>true</extensions>

                <dependencies>
                        <dependency>
                                <groupId>com.adobe.flex</groupId>
                                <artifactId>compiler</artifactId>
                                <version>${flex.version}</version>
                                <type>pom</type>
                        </dependency>
                        <dependency>
                                <groupId>com.adobe.flex.framework</groupId>
                                <artifactId>playerglobal</artifactId>
                                <version>10-3.3.0.4852</version>
                                <classifier></classifier>
                                <type>swc</type>
                        </dependency>
                </dependencies>

                <configuration>
                <configFile>src/com-config.xml</configFile>
                <showWarnings>false</showWarnings>
                <testRunner>
                        <launcher>
                                
<flashplayerCommand>${flashPlayer.command}</flashplayerCommand>
                        </launcher>
                </testRunner>
                </configuration>
        </plugin>
   </plugins>
  </build>

  <dependencies>

        <dependency>
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-unittest-flexunit4</artifactId>
                <version>4.0-SNAPSHOT</version>
                <type>swc</type>
                <scope>test</scope>
        </dependency>

    <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>4.0-rc-1</version>
      <type>swc</type>
      <scope>test</scope>
    </dependency>

         <dependency>
                <groupId>com.adobe.flex.framework</groupId>
                <artifactId>playerglobal</artifactId>
                <version>10-3.3.0.4852</version>
                <classifier></classifier>
                <type>swc</type>
        </dependency>

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

        <!--<dependency>
                <groupId>wip.com</groupId>
                <artifactId>wip_controls</artifactId>
                <version>1.0</version>
                <classifier></classifier>
                <type>swc</type>
        </dependency>-->

  </dependencies>
</project>

My test class
package  {

        import flash.display.Sprite;
        import org.flexunit.runner.FlexUnitCore;
        import org.flexunit.runner.notification.RunListener;
        /**
         * ...
         * @author
         */
        public class MainTest extends Sprite {

                private var core : FlexUnitCore;

                //private var testRuner:RunListener;

                public function MainTest() {
                        //addChild(TestRunnerBase);
                        startTestProcess();
                }

                protected function startTestProcess():void {
                         core = new FlexUnitCore();

                         //Listener for the UI
                         core.addListener(new RunListener());

                         core.run(MainSuite);
                }


        }

}

And TestSuite

package  {
        /**
         * ...
         * @author
         */
        [Suite]
        [RunWith("org.flexunit.runners.Suite")]
        public class MainSuite {

                public function MainSuite() {

                }

        }

}

I Appreciate your help.

Javier Sivack

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to