Exemplo n.º 1
0
//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected:
//ORIGINAL LINE: private void verifyNodes(final java.util.List<java.util.Map<String, Object>> response)
        private void VerifyNodes(IList <IDictionary <string, object> > response)
        {
            foreach (IDictionary <string, object> nodeMap in response)
            {
                NodeRepresentationTest.verifySerialisation(nodeMap);
            }
        }
Exemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldHandleOptionalValuesCorrectly1() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldHandleOptionalValuesCorrectly1()
        {
            long   n         = _functionalTestHelper.GraphDbHelper.createNode();
            string methodUri = GetPluginMethodUri(_functionalTestHelper.nodeUri(n), "getThisNodeOrById");
            IDictionary <string, object> map = PluginFunctionalTestHelper.MakePostMap(methodUri);

            NodeRepresentationTest.verifySerialisation(map);
        }
Exemplo n.º 3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void canInvokeExtensionMethodWithNoArguments() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void CanInvokeExtensionMethodWithNoArguments()
        {
            IDictionary <string, object> map = PluginFunctionalTestHelper.MakeGet(_functionalTestHelper.dataUri());

            map = (IDictionary <string, object>)map["extensions"];
            map = (IDictionary <string, object>)map[typeof(FunctionalTestPlugin).Name];

            string uri = ( string )map[FunctionalTestPlugin.CREATE_NODE];
            IDictionary <string, object> description = PluginFunctionalTestHelper.MakePostMap(uri);

            NodeRepresentationTest.verifySerialisation(description);
        }
Exemplo n.º 4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void canInvokePluginWithParam() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void CanInvokePluginWithParam()
        {
            long n = _functionalTestHelper.GraphDbHelper.createNode();

            IDictionary <string, object> map = PluginFunctionalTestHelper.MakeGet(_functionalTestHelper.dataUri());

            map = (IDictionary <string, object>)map["extensions"];
            map = (IDictionary <string, object>)map[typeof(FunctionalTestPlugin).Name];

            string uri = ( string )map["methodWithIntParam"];
            IDictionary <string, object> @params = MapUtil.map("id", n);
            IDictionary <string, object> node    = PluginFunctionalTestHelper.MakePostMap(uri, @params);

            NodeRepresentationTest.verifySerialisation(node);
        }