This class maps remote types on the bus to local types.
Example #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);
        }
Example #2
0
        public void TestIfRemoteStringIsInJavaValid()
        {
            LocalType lt = new LocalType(typeof(String));

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

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

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

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

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