Beispiel #1
0
        protected void RunTest()
        {
            if (!JavaServices.CanRunJavaCompatibilityTests())
            {
                return;
            }

            GenerateDataFile();
            CompileJavaSnippet();
            string output = RunJavaSnippet();

            AssertJavaOutput(output);
        }
        public void TestAccessingJavaFromDotnet()
        {
            if (!JavaServices.CanRunJavaCompatibilityTests())
            {
                return;
            }

            GenerateJavaData();
            using (IObjectContainer container = OpenJavaDataFile())
            {
                AssertAliasedData(container);
            }
        }
        public void SetUp()
        {
            if (!JavaServices.CanRunJavaCompatibilityTests())
            {
                throw new TestException("Fail to run cross platform tests", null);
            }

#if !RUNNING_OUTSIDE_SERVER
            StartServer();
#endif

            Connect();
        }
        public void TestUpdatingAliasedDataDifferentSession()
        {
            if (!JavaServices.CanRunJavaCompatibilityTests())
            {
                return;
            }

            GenerateJavaData();
            string[] newNames = UpdateAliasedData();
            using (IObjectContainer container = OpenJavaDataFile())
            {
                AssertAliasedData(QueryAliasedData(container), newNames);
            }
        }
Beispiel #5
0
        public void TestUpdatingAliasedDataSameSession()
        {
            if (!JavaServices.CanRunJavaCompatibilityTests())
            {
                return;
            }

            GenerateJavaData();
            using (var container = OpenJavaDataFile())
            {
                var newNames = UpdateAliasedData(container);
                AssertAliasedData(QueryAliasedData(container), newNames);
            }
        }
Beispiel #6
0
        public void Test()
        {
            if (!JavaServices.CanRunJavaCompatibilityTests())
            {
                return;
            }

            DeleteDataFile();
            GenerateNetDataFile();
            DumpDataFile();

            var output = CompileAndRunJavaApplication();

            AssertJavaOutput(output);
        }