mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 13:05:09 +00:00
Remove tests until XMI is ready
This commit is contained in:
parent
934a1c357b
commit
9660d3ced9
@ -1,82 +0,0 @@
|
||||
package nonreg.xmi.clazz;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import nonreg.xmi.XmiTest;
|
||||
|
||||
/*
|
||||
|
||||
|
||||
https://forum.plantuml.net/12644/class-access-modifiers-not-in-xmi-export
|
||||
|
||||
Test diagram MUST be put between triple quotes
|
||||
|
||||
"""
|
||||
@startuml
|
||||
-class foo{
|
||||
# field1 : type
|
||||
}
|
||||
@enduml
|
||||
"""
|
||||
|
||||
Expected result MUST be put between triple brackets
|
||||
|
||||
{{{star
|
||||
<?xml version="1.0" encoding="UTF-8"?><XMI xmlns:UML="href://org.omg/UML/1.3" xmi.version="1.1">
|
||||
<XMI.header>
|
||||
<XMI.documentation>
|
||||
<XMI.exporter>PlantUML</XMI.exporter>
|
||||
<XMI.exporterVersion>1.2023.2beta7</XMI.exporterVersion>
|
||||
</XMI.documentation>
|
||||
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/>
|
||||
</XMI.header>
|
||||
<XMI.content>
|
||||
<UML:Model name="PlantUML" xmi.id="model1">
|
||||
<UML:Namespace.ownedElement>
|
||||
<UML:Class name="foo" visibility="private" xmi.id="cl0002">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute name="field1 : type" visibility="protected" xmi.id="att3"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Class>
|
||||
</UML:Namespace.ownedElement>
|
||||
</UML:Model>
|
||||
</XMI.content>
|
||||
</XMI>
|
||||
|
||||
}}}star
|
||||
|
||||
{{{argo
|
||||
<?xml version="1.0" encoding="UTF-8"?><XMI xmlns:UML="href://org.omg/UML/1.3" xmi.version="1.1">
|
||||
<XMI.header>
|
||||
<XMI.documentation>
|
||||
<XMI.exporter>PlantUML</XMI.exporter>
|
||||
<XMI.exporterVersion>1.2023.2beta7</XMI.exporterVersion>
|
||||
</XMI.documentation>
|
||||
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/>
|
||||
</XMI.header>
|
||||
<XMI.content>
|
||||
<UML:Model name="PlantUML" xmi.id="model1">
|
||||
<UML:Namespace.ownedElement>
|
||||
<UML:Class name="foo" visibility="private" xmi.id="cl0002">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Attribute name="field1 : type" visibility="protected" xmi.id="att3"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Class>
|
||||
</UML:Namespace.ownedElement>
|
||||
</UML:Model>
|
||||
</XMI.content>
|
||||
</XMI>
|
||||
|
||||
}}}argo
|
||||
|
||||
*/
|
||||
public class XMI0000_Test extends XmiTest {
|
||||
|
||||
@Test
|
||||
void testSimple() throws IOException {
|
||||
checkXmlAndDescription("(1 entities)");
|
||||
}
|
||||
|
||||
}
|
@ -1,107 +0,0 @@
|
||||
package nonreg.xmi.clazz;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import nonreg.xmi.XmiTest;
|
||||
|
||||
/*
|
||||
|
||||
|
||||
https://forum.plantuml.net/12972/only-the-first-line-any-component-description-exported-file
|
||||
|
||||
|
||||
Test diagram MUST be put between triple quotes
|
||||
|
||||
"""
|
||||
@startuml
|
||||
class A {
|
||||
}
|
||||
|
||||
class B{
|
||||
}
|
||||
|
||||
A -->B
|
||||
@enduml
|
||||
"""
|
||||
|
||||
Expected result MUST be put between triple brackets
|
||||
|
||||
{{{star
|
||||
<?xml version="1.0" encoding="UTF-8"?><XMI xmlns:UML="href://org.omg/UML/1.3" xmi.version="1.1">
|
||||
<XMI.header>
|
||||
<XMI.documentation>
|
||||
<XMI.exporter>PlantUML</XMI.exporter>
|
||||
<XMI.exporterVersion>1.2023.2beta7</XMI.exporterVersion>
|
||||
</XMI.documentation>
|
||||
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/>
|
||||
</XMI.header>
|
||||
<XMI.content>
|
||||
<UML:Model name="PlantUML" xmi.id="model1">
|
||||
<UML:Namespace.ownedElement>
|
||||
<UML:Class name="A" xmi.id="cl0002">
|
||||
<UML:Classifier.feature/>
|
||||
</UML:Class>
|
||||
<UML:Class name="B" xmi.id="cl0003">
|
||||
<UML:Classifier.feature/>
|
||||
</UML:Class>
|
||||
<UML:Association namespace="model1" xmi.id="ass5">
|
||||
<UML:Association.connection>
|
||||
<UML:AssociationEnd association="ass5" type="cl0002" xmi.id="end6">
|
||||
<UML:AssociationEnd.participant/>
|
||||
</UML:AssociationEnd>
|
||||
<UML:AssociationEnd association="ass5" type="cl0003" xmi.id="end7">
|
||||
<UML:AssociationEnd.participant/>
|
||||
</UML:AssociationEnd>
|
||||
</UML:Association.connection>
|
||||
</UML:Association>
|
||||
</UML:Namespace.ownedElement>
|
||||
</UML:Model>
|
||||
</XMI.content>
|
||||
</XMI>
|
||||
}}}star
|
||||
|
||||
{{{argo
|
||||
<?xml version="1.0" encoding="UTF-8"?><XMI xmlns:UML="href://org.omg/UML/1.3" xmi.version="1.1">
|
||||
<XMI.header>
|
||||
<XMI.documentation>
|
||||
<XMI.exporter>PlantUML</XMI.exporter>
|
||||
<XMI.exporterVersion>1.2023.2beta7</XMI.exporterVersion>
|
||||
</XMI.documentation>
|
||||
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/>
|
||||
</XMI.header>
|
||||
<XMI.content>
|
||||
<UML:Model name="PlantUML" xmi.id="model1">
|
||||
<UML:Namespace.ownedElement>
|
||||
<UML:Class name="A" xmi.id="cl0002">
|
||||
<UML:Classifier.feature/>
|
||||
</UML:Class>
|
||||
<UML:Class name="B" xmi.id="cl0003">
|
||||
<UML:Classifier.feature/>
|
||||
</UML:Class>
|
||||
<UML:Association xmi.id="ass5">
|
||||
<UML:Association.connection>
|
||||
<UML:AssociationEnd association="ass5" type="cl0002" xmi.id="end6">
|
||||
<UML:AssociationEnd.participant/>
|
||||
</UML:AssociationEnd>
|
||||
<UML:AssociationEnd association="ass5" type="cl0003" xmi.id="end7">
|
||||
<UML:AssociationEnd.participant/>
|
||||
</UML:AssociationEnd>
|
||||
</UML:Association.connection>
|
||||
</UML:Association>
|
||||
</UML:Namespace.ownedElement>
|
||||
</UML:Model>
|
||||
</XMI.content>
|
||||
</XMI>
|
||||
}}}argo
|
||||
|
||||
*/
|
||||
public class XMI0002_Test extends XmiTest {
|
||||
|
||||
@Test
|
||||
void testSimple() throws IOException {
|
||||
checkXmlAndDescription("(2 entities)");
|
||||
}
|
||||
|
||||
}
|
@ -1,100 +0,0 @@
|
||||
package nonreg.xmi.clazz;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import nonreg.xmi.XmiTest;
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
||||
|
||||
Test diagram MUST be put between triple quotes
|
||||
|
||||
"""
|
||||
@startuml
|
||||
class A {
|
||||
{method}{abstract}{static} + method
|
||||
}
|
||||
|
||||
abstract class B{
|
||||
}
|
||||
|
||||
static class C{
|
||||
}
|
||||
|
||||
@enduml
|
||||
"""
|
||||
|
||||
Expected result MUST be put between triple brackets
|
||||
|
||||
{{{star
|
||||
<?xml version="1.0" encoding="UTF-8"?><XMI xmlns:UML="href://org.omg/UML/1.3" xmi.version="1.1">
|
||||
<XMI.header>
|
||||
<XMI.documentation>
|
||||
<XMI.exporter>PlantUML</XMI.exporter>
|
||||
<XMI.exporterVersion>1.2023.2beta7</XMI.exporterVersion>
|
||||
</XMI.documentation>
|
||||
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/>
|
||||
</XMI.header>
|
||||
<XMI.content>
|
||||
<UML:Model name="PlantUML" xmi.id="model1">
|
||||
<UML:Namespace.ownedElement>
|
||||
<UML:Class name="A" xmi.id="cl0002">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Operation isStatic="true" name="method" visibility="public" xmi.id="att7"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Class>
|
||||
<UML:Class isAbstract="true" name="B" xmi.id="cl0003">
|
||||
<UML:Classifier.feature/>
|
||||
</UML:Class>
|
||||
<UML:Class isStatic="true" name="C" xmi.id="cl0004">
|
||||
<UML:Classifier.feature/>
|
||||
</UML:Class>
|
||||
</UML:Namespace.ownedElement>
|
||||
</UML:Model>
|
||||
</XMI.content>
|
||||
</XMI>
|
||||
|
||||
}}}star
|
||||
|
||||
{{{argo
|
||||
<?xml version="1.0" encoding="UTF-8"?><XMI xmlns:UML="href://org.omg/UML/1.3" xmi.version="1.1">
|
||||
<XMI.header>
|
||||
<XMI.documentation>
|
||||
<XMI.exporter>PlantUML</XMI.exporter>
|
||||
<XMI.exporterVersion>1.2023.2beta7</XMI.exporterVersion>
|
||||
</XMI.documentation>
|
||||
<XMI.metamodel xmi.name="UML" xmi.version="1.4"/>
|
||||
</XMI.header>
|
||||
<XMI.content>
|
||||
<UML:Model name="PlantUML" xmi.id="model1">
|
||||
<UML:Namespace.ownedElement>
|
||||
<UML:Class name="A" xmi.id="cl0002">
|
||||
<UML:Classifier.feature>
|
||||
<UML:Operation isStatic="true" name="method" visibility="public" xmi.id="att7"/>
|
||||
</UML:Classifier.feature>
|
||||
</UML:Class>
|
||||
<UML:Class isAbstract="true" name="B" xmi.id="cl0003">
|
||||
<UML:Classifier.feature/>
|
||||
</UML:Class>
|
||||
<UML:Class isStatic="true" name="C" xmi.id="cl0004">
|
||||
<UML:Classifier.feature/>
|
||||
</UML:Class>
|
||||
</UML:Namespace.ownedElement>
|
||||
</UML:Model>
|
||||
</XMI.content>
|
||||
</XMI>
|
||||
}}}argo
|
||||
|
||||
*/
|
||||
public class XMI0003_Test extends XmiTest {
|
||||
|
||||
@Test
|
||||
void testSimple() throws IOException {
|
||||
checkXmlAndDescription("(3 entities)");
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user