private static string RunJavaApplication() { return (JavaServices.java("NetArrayFromJava.Program", DataFile, CrossPlatformServices.FullyQualifiedName(typeof(Item)))); }
public void TestArrayList() { CompileJavaCode(); JavaServices.java(JavaCode().MainClassName, TempFile()); using (IObjectContainer db = OpenDatabase()) { CollectionHolder holder = RetrieveOnlyInstance <CollectionHolder>(db); } }
protected void InsertFromJavaClient(int year, string name, DateTime localReleaseDate) { JavaSnippet javaClient = JavaClientQuery(); CompileJava(javaClient); string insertResult = JavaServices.java(javaClient.MainClassName, Port.ToString(), USER_NAME, USER_PWD, year.ToString(), name, localReleaseDate.ToShortDateString()); Assert.AreEqual("", insertResult); }
protected override void StartServer() { ThreadPool.QueueUserWorkItem(delegate { JavaServices.CompileJavaCode(JavaServerCode.MainClassFile, JavaServerCode.SourceCode); string output = JavaServices.java(JavaServerCode.MainClassName, Port.ToString(), USER_NAME, USER_PWD, Debugger.IsAttached.ToString()); if (output.Length > 0) { Assert.Fail("\r\n\r\n****** Java Server returned an error ********\r\n\r\n" + output); } }); }
protected string RunJavaQuery(string type, string tbf) { JavaSnippet javaClient = JavaClientQuery(); CompileJava(javaClient); string queryResult = JavaServices.java(javaClient.MainClassName, Port.ToString(), USER_NAME, USER_PWD, type, tbf); Assert.IsGreater(0, queryResult.Length); return(queryResult); }
private string RunJavaSnippet() { return(JavaServices.java(JavaCode().MainClassName, DataFilePath())); }
private static void RunJavaProgram() { string stdout = JavaServices.java("com.db4o.test.aliases.Program", GetJavaDataFile()); Console.WriteLine(stdout); }