r1059 - in trunk/wikitty-api: . src/test src/test/java/org/nuiton/wikitty/entities src/test/xmi
Author: echatellier Date: 2011-07-05 18:25:09 +0200 (Tue, 05 Jul 2011) New Revision: 1059 Url: http://nuiton.org/repositories/revision/wikitty/1059 Log: Add test on generation. Added: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/BirdImpl.java trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/HorseImpl.java trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/PegasusImpl.java trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/WikittyGenerationTest.java trunk/wikitty-api/src/test/xmi/ trunk/wikitty-api/src/test/xmi/wikittytest.zargo Modified: trunk/wikitty-api/pom.xml Modified: trunk/wikitty-api/pom.xml =================================================================== --- trunk/wikitty-api/pom.xml 2011-07-05 16:24:44 UTC (rev 1058) +++ trunk/wikitty-api/pom.xml 2011-07-05 16:25:09 UTC (rev 1059) @@ -171,6 +171,24 @@ <goal>smart-generate</goal> </goals> </execution> + <execution> + <id>test-generation</id> + <phase>generate-test-sources</phase> + <configuration> + <inputs> + <input>zargo</input> + </inputs> + <fullPackagePath>org.nuiton.wikitty.entities</fullPackagePath> + <defaultPackage>org.nuiton.wikitty.entities</defaultPackage> + <extractedPackages>org.nuiton.wikitty.entities</extractedPackages> + <templates>org.nuiton.wikitty.generator.WikittyMetaGenerator</templates> + <outputDirectory>target/generated-test-sources</outputDirectory> + <testPhase>true</testPhase> + </configuration> + <goals> + <goal>smart-generate</goal> + </goals> + </execution> </executions> </plugin> Added: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/BirdImpl.java =================================================================== --- trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/BirdImpl.java (rev 0) +++ trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/BirdImpl.java 2011-07-05 16:25:09 UTC (rev 1059) @@ -0,0 +1,39 @@ +/* + * #%L + * + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Codelutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + +package org.nuiton.wikitty.entities; + +/** + * Bird impl. + * + * @author chatellier + * @version $Revision$ + * + * Last update : $Date$ + * By : $Author$ + */ +public class BirdImpl { + +} Property changes on: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/BirdImpl.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/HorseImpl.java =================================================================== --- trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/HorseImpl.java (rev 0) +++ trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/HorseImpl.java 2011-07-05 16:25:09 UTC (rev 1059) @@ -0,0 +1,39 @@ +/* + * #%L + * + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Codelutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + +package org.nuiton.wikitty.entities; + +/** + * Horse impl. + * + * @author chatellier + * @version $Revision$ + * + * Last update : $Date$ + * By : $Author$ + */ +public class HorseImpl { + +} Property changes on: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/HorseImpl.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/PegasusImpl.java =================================================================== --- trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/PegasusImpl.java (rev 0) +++ trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/PegasusImpl.java 2011-07-05 16:25:09 UTC (rev 1059) @@ -0,0 +1,84 @@ +/* + * #%L + * + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Codelutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + +package org.nuiton.wikitty.entities; + +/** + * Pegasus impl. + * + * @author chatellier + * @version $Revision$ + * + * Last update : $Date$ + * By : $Author$ + */ +public class PegasusImpl extends PegasusAbstract { + + /* + * @see org.nuiton.wikitty.entities.Pegasus#scream() + */ + @Override + public void scream() { + // TODO Auto-generated method stub + + } + + /* + * @see org.nuiton.wikitty.entities.Pegasus#walk() + */ + @Override + public void walk() { + // TODO Auto-generated method stub + + } + + /* + * @see org.nuiton.wikitty.entities.Bird#fly() + */ + @Override + public void fly() { + // TODO Auto-generated method stub + + } + + /* + * @see org.nuiton.wikitty.entities.Bird#getWingsCount() + */ + @Override + public int getWingsCount() { + // TODO Auto-generated method stub + return 0; + } + + /* + * @see org.nuiton.wikitty.entities.Bird#setWingsCount(int) + */ + @Override + public void setWingsCount(int wingsCount) { + // TODO Auto-generated method stub + + } + +} Property changes on: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/PegasusImpl.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/WikittyGenerationTest.java =================================================================== --- trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/WikittyGenerationTest.java (rev 0) +++ trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/WikittyGenerationTest.java 2011-07-05 16:25:09 UTC (rev 1059) @@ -0,0 +1,54 @@ +/* + * #%L + * + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2011 Codelutin, Chatellier Eric + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + +package org.nuiton.wikitty.entities; + +import junit.framework.Assert; + +import org.junit.Test; + +/** + * Test que la generation est celle attendues. + * + * Principalement provenant du modèle de test (src/test/xmi). + * + * @author chatellier + * @version $Revision$ + * + * Last update : $Date$ + * By : $Author$ + */ +public class WikittyGenerationTest { + + /** + * Utilise seulement des entities pour voir si certains attributs ou + * methodes particulières sont bien présentes. + */ + @Test + public void testModelEntitiesCompilation() { + Pegasus pegasus = new PegasusImpl(); + String pegasusRace = pegasus.getRaceFromPegasus(); + } +} Property changes on: trunk/wikitty-api/src/test/java/org/nuiton/wikitty/entities/WikittyGenerationTest.java ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision HeadURL Added: trunk/wikitty-api/src/test/xmi/wikittytest.zargo =================================================================== (Binary files differ) Property changes on: trunk/wikitty-api/src/test/xmi/wikittytest.zargo ___________________________________________________________________ Added: svn:mime-type + application/octet-stream
participants (1)
-
echatellier@users.nuiton.org