Example #1
0
        public void Test_RuntimeServices()
        {
            RuntimeInstance ri = RuntimeSingleton.RuntimeInstance;

            try {
                ri.init();
            } catch (System.Exception ex) {
                Console.Out.WriteLine(ex.Message);
                Assertion.Fail();
            }
            ExtendedProperties ep = ri.Configuration;
        }
Example #2
0
        public void Test_RuntimeServices()
        {
            RuntimeInstance ri = RuntimeSingleton.RuntimeInstance;

            try
            {
                ri.init();
            }
            catch (Exception ex)
            {
                Assertion.Fail(ex.Message);
            }
            ExtendedProperties ep = ri.Configuration;
        }
Example #3
0
 /// <summary>
 /// initialize the Velocity runtime engine, using the default
 /// properties of the Velocity distribution
 /// </summary>
 public virtual void Init()
 {
     ri.init();
 }
Example #4
0
 /// <summary>
 /// CTOR that invokes an init(String), initializing
 /// the engine using the properties file specified
 /// </summary>
 /// <exception cref="Exception"></exception>
 /// <param name="propsFilename">name of properties file to init with</param>
 public VelocityEngine(String propsFilename)
 {
     ri.init(propsFilename);
 }