This class maps remote types on the bus to local types.
コード例 #1
0
        public void TestIfRemoteFromAnnotiationInAMethodIsInJavaValid()
        {
            Type testClassType = typeof(TestClassLocalTypeWithLessMethods);
            LocalType lt = new LocalType(testClassType);

            Assert.AreEqual<String>(lt.RemoteTypeFullName, "org.test.domain.example." + testClassType.Name);
        }
コード例 #2
0
        public void TestIfRemoteStringIsInJavaValid()
        {
            LocalType lt = new LocalType(typeof(String));

            Assert.AreEqual<String>(lt.RemoteTypeFullName, "java.lang.String");
        }
コード例 #3
0
        public void TestIfRemoteIntIsInJavaValid()
        {
            LocalType lt = new LocalType(typeof(int));

            Assert.AreEqual<String>(lt.RemoteTypeFullName, "java.lang.Integer");
        }
コード例 #4
0
        public void TestIfRemoteFloatIsInJavaValid()
        {
            LocalType lt = new LocalType(typeof(float));

            Assert.AreEqual<String>(lt.RemoteTypeFullName, "java.lang.Float");
        }
コード例 #5
0
        public void TestIfRemoteDictionaryIsInJavaValid()
        {
            LocalType lt = new LocalType(typeof(string2stringMapEntry));

            Assert.AreEqual<String>(lt.RemoteTypeFullName, "java.util.Map");
        }
コード例 #6
0
        public void TestIfRemoteAliveStatIsInJavaValid()
        {
            LocalType lt = new LocalType(typeof(AliveState));

            Assert.AreEqual<String>(lt.RemoteTypeFullName, "org.openengsb.core.api.AliveState");
        }