Search in sources :

Example 21 with MavenDomProjectModel

use of org.jetbrains.idea.maven.dom.model.MavenDomProjectModel in project intellij-community by JetBrains.

the class MavenModelReadingAndWritingTest method testReading.

public void testReading() throws Exception {
    MavenDomProjectModel model = getDomModel();
    assertEquals("test", model.getGroupId().getStringValue());
    assertEquals("project", model.getArtifactId().getStringValue());
    assertEquals("1", model.getVersion().getStringValue());
}
Also used : MavenDomProjectModel(org.jetbrains.idea.maven.dom.model.MavenDomProjectModel)

Aggregations

MavenDomProjectModel (org.jetbrains.idea.maven.dom.model.MavenDomProjectModel)21 VirtualFile (com.intellij.openapi.vfs.VirtualFile)6 NotNull (org.jetbrains.annotations.NotNull)5 MavenDomDependency (org.jetbrains.idea.maven.dom.model.MavenDomDependency)5 Nullable (org.jetbrains.annotations.Nullable)4 PsiFile (com.intellij.psi.PsiFile)3 XmlTag (com.intellij.psi.xml.XmlTag)3 DomElement (com.intellij.util.xml.DomElement)3 MavenProject (org.jetbrains.idea.maven.project.MavenProject)3 Result (com.intellij.openapi.application.Result)2 WriteCommandAction (com.intellij.openapi.command.WriteCommandAction)2 ArrayList (java.util.ArrayList)2 Collection (java.util.Collection)2 MavenId (org.jetbrains.idea.maven.model.MavenId)2 IntentionAction (com.intellij.codeInsight.intention.IntentionAction)1 IProperty (com.intellij.lang.properties.IProperty)1 Project (com.intellij.openapi.project.Project)1 Sdk (com.intellij.openapi.projectRoots.Sdk)1 Pair (com.intellij.openapi.util.Pair)1 TextRange (com.intellij.openapi.util.TextRange)1