//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void shouldLoadProcedureFromJarWithSpacesInFilename() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void ShouldLoadProcedureFromJarWithSpacesInFilename() { // Given URL jar = (new JarBuilder()).CreateJarFor(Tmpdir.newFile((new Random()).Next() + " some spaces in filename.jar"), typeof(ClassWithOneProcedure)); // When IList <CallableProcedure> procedures = _jarloader.loadProceduresFromDir(ParentDir(jar)).procedures(); // Then //JAVA TO C# CONVERTER TODO TASK: Method reference arbitrary object instance method syntax is not converted by Java to C# Converter: IList <ProcedureSignature> signatures = procedures.Select(CallableProcedure::signature).ToList(); assertThat(signatures, contains(procedureSignature("org", "neo4j", "kernel", "impl", "proc", "myProcedure").@out("someNumber", NTInteger).build())); assertThat(asList(procedures[0].Apply(new BasicContext(), new object[0], _resourceTracker)), contains(IsEqual.equalTo(new object[] { 1337L }))); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void canSpecifyConfigFile() throws Throwable //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void CanSpecifyConfigFile() { // Given File configFile = TempDir.newFile(Config.DEFAULT_CONFIG_FILE_NAME); IDictionary <string, string> properties = stringMap(forced_kernel_id.name(), "ourcustomvalue"); //JAVA TO C# CONVERTER TODO TASK: There is no .NET Dictionary equivalent to the Java 'putAll' method: properties.putAll(ServerTestUtils.DefaultRelativeProperties); //JAVA TO C# CONVERTER TODO TASK: There is no .NET Dictionary equivalent to the Java 'putAll' method: properties.putAll(ConnectorsOnRandomPortsConfig()); store(properties, configFile); // When ServerBootstrapper.Start(Bootstrapper, "--home-dir", TempDir.newFolder("home-dir").AbsolutePath, "--config-dir", configFile.ParentFile.AbsolutePath); // Then assertThat(Bootstrapper.Server.Config.get(forced_kernel_id), equalTo("ourcustomvalue")); }