Exemplo n.º 1
0
        public void ParserMethodTest()
        {
            String xmiPath, name;
            StructureCollection returnModel;

            xmiPath = "..\\..\\..\\TestFiles\\java oats script.java";
            name    = "test";

            returnModel = parser.ParserMethod(xmiPath, ref name, null);

            Assert.IsNotNull(returnModel, "Method returned null");
        }
Exemplo n.º 2
0
        public static List <GeneralUseStructure> GetStructureCollectionActOats()
        {
            try
            {
                String name, path;
                OgmaJ  parser;

                name   = "test";
                path   = "..\\..\\..\\TestFiles\\java oats script.java";
                parser = new OgmaJ();

                return(parser.ParserMethod(path, ref name, null).listGeneralStructure);
            }
            catch (Exception e)
            {
                throw new Exception("There's a problem with OgmaJ parser: " + e.Message);
            }
        }