1 package com.github.javaparser.metamodel; 2 3 import com.github.javaparser.ast.expr.StringLiteralExpr; 4 import org.junit.Test; 5 6 import java.util.Optional; 7 8 import static org.junit.Assert.assertEquals; 9 10 class TestMetaModel extends BaseNodeMetaModel { 11 12 public TestMetaModel() { 13 super(Optional.empty(), StringLiteralExpr.class, "stri", "com.japa", true, true); 14 } 15 } 16 17 public class BaseNodeMetaModelTest { 18 @Test 19 public void testGetters() { 20 TestMetaModel test = new TestMetaModel(); 21 22 assertEquals("testMetaModel", test.getMetaModelFieldName()); 23 } 24 25 } 26