Пример #1
0
        private void TryAssertionNoClassNameRequired(EPServiceProvider epService, SupportEnum expected, String text)
        {
            var stmt = epService.EPAdministrator.CreateEPL("@MyAnnotationValueEnum(SupportEnum = " + text + ") select * from SupportBean");
            var anno = (MyAnnotationValueEnumAttribute)stmt.Annotations.First();

            Assert.That(expected, Is.EqualTo(anno.SupportEnum));
        }
Пример #2
0
 public SupportBeanWithEnum(
     string theString,
     SupportEnum supportEnum)
 {
     TheString = theString;
     SupportEnum = supportEnum;
 }
Пример #3
0
        private void SendSupportBeanEvent(String stringValue,
                                          SupportEnum supportEnum)
        {
            var theEvent = new SupportBeanWithEnum(stringValue, supportEnum);

            _epService.EPRuntime.SendEvent(theEvent);
        }
Пример #4
0
        public void TestCopyEnum()
        {
            SupportEnum enumOne = SupportEnum.ENUM_VALUE_2;
            Object      result  = SerializableObjectCopier.Copy(enumOne);

            Assert.AreEqual(result, enumOne);
            Assert.IsTrue(Equals(result, enumOne));
        }
Пример #5
0
        private void SendEvent(String stringValue, Double doubleBoxed, SupportEnum enumVal)
        {
            SupportBean bean = new SupportBean();

            bean.TheString   = stringValue;
            bean.DoubleBoxed = doubleBoxed;
            bean.EnumValue   = enumVal;
            _epService.EPRuntime.SendEvent(bean);
        }
Пример #6
0
        private static void SendSupportBeanEvent(
            RegressionEnvironment env,
            string theString,
            SupportEnum supportEnum)
        {
            var theEvent = new SupportBeanWithEnum(theString, supportEnum);

            env.SendEventBean(theEvent);
        }
 public void Update(
     EPStatement statement,
     string theString,
     SupportEnum supportEnum)
 {
     AddIndication(
         statement,
         new object[] {theString, supportEnum});
 }
Пример #8
0
        public void TestCopyEnum()
        {
            SupportEnum enumOne      = SupportEnum.ENUM_VALUE_2;
            var         objectCopier = SerializableObjectCopier.GetInstance(container);
            object      result       = objectCopier.Copy(enumOne);

            Assert.That(result, Is.Not.Null);
            Assert.That(result, Is.InstanceOf <SupportEnum>());
            Assert.That(result, Is.EqualTo(enumOne));
        }
 private void TryAssertionNoClassNameRequired(
     RegressionEnvironment env,
     SupportEnum expected,
     string text)
 {
     env.CompileDeploy(
         "@MyAnnotationValueEnum(SupportEnum = " + text + ") @Name('s0') select * from SupportBean");
     var anno = (MyAnnotationValueEnumAttribute) env.Statement("s0").Annotations[0];
     Assert.AreEqual(expected, anno.SupportEnum);
     env.UndeployAll();
 }
Пример #10
0
 private static void SendEvent(
     RegressionEnvironment env,
     string theString,
     double? doubleBoxed,
     SupportEnum enumVal)
 {
     SupportBean bean = new SupportBean();
     bean.TheString = theString;
     bean.DoubleBoxed = doubleBoxed;
     bean.EnumValue = enumVal;
     env.SendEventBean(bean);
 }
Пример #11
0
 public SupportBeanVariantStream(
     string theString,
     bool boolBoxed,
     int intPrimitive,
     int longPrimitive,
     float doublePrimitive,
     SupportEnum enumValue)
 {
     TheString = theString;
     BoolBoxed = boolBoxed;
     IntPrimitive = intPrimitive;
     LongPrimitive = longPrimitive;
     DoublePrimitive = doublePrimitive;
     EnumValue = enumValue;
 }
Пример #12
0
        private void SendSupportBeanEvent(
            EPServiceProvider epService,
            bool b,
            bool?boolBoxed,
            int i,
            int?intBoxed,
            long l,
            long longBoxed,
            char c,
            char?charBoxed,
            short s,
            short?shortBoxed,
            byte by,
            byte?byteBoxed,
            float f,
            float?floatBoxed,
            double d,
            double?doubleBoxed,
            string str,
            SupportEnum enumval)
        {
            var theEvent = new SupportBean();

            theEvent.BoolPrimitive   = b;
            theEvent.BoolBoxed       = boolBoxed;
            theEvent.IntPrimitive    = i;
            theEvent.IntBoxed        = intBoxed;
            theEvent.LongPrimitive   = l;
            theEvent.LongBoxed       = longBoxed;
            theEvent.CharPrimitive   = c;
            theEvent.CharBoxed       = charBoxed;
            theEvent.ShortPrimitive  = s;
            theEvent.ShortBoxed      = shortBoxed;
            theEvent.BytePrimitive   = by;
            theEvent.ByteBoxed       = byteBoxed;
            theEvent.FloatPrimitive  = f;
            theEvent.FloatBoxed      = floatBoxed;
            theEvent.DoublePrimitive = d;
            theEvent.DoubleBoxed     = doubleBoxed;
            theEvent.TheString       = str;
            theEvent.EnumValue       = enumval;
            epService.EPRuntime.SendEvent(theEvent);
        }
Пример #13
0
        private static void SendSupportBeanEvent(
            RegressionEnvironment env,
            bool b,
            bool?boolBoxed,
            int i,
            int?intBoxed,
            long l,
            long?longBoxed,
            char c,
            char?charBoxed,
            short s,
            short?shortBoxed,
            byte by,
            byte byteBoxed,
            float f,
            float?floatBoxed,
            double d,
            double?doubleBoxed,
            string str,
            SupportEnum enumval)
        {
            var theEvent = new SupportBean();

            theEvent.BoolPrimitive   = b;
            theEvent.BoolBoxed       = boolBoxed;
            theEvent.IntPrimitive    = i;
            theEvent.IntBoxed        = intBoxed;
            theEvent.LongPrimitive   = l;
            theEvent.LongBoxed       = longBoxed;
            theEvent.CharPrimitive   = c;
            theEvent.CharBoxed       = charBoxed;
            theEvent.ShortPrimitive  = s;
            theEvent.ShortBoxed      = shortBoxed;
            theEvent.BytePrimitive   = by;
            theEvent.ByteBoxed       = byteBoxed;
            theEvent.FloatPrimitive  = f;
            theEvent.FloatBoxed      = floatBoxed;
            theEvent.DoublePrimitive = d;
            theEvent.DoubleBoxed     = doubleBoxed;
            theEvent.TheString       = str;
            theEvent.EnumValue       = enumval;
            env.SendEventBean(theEvent);
        }
Пример #14
0
        private void SendSupportBeanEvent(bool boolPrimitive,
                                          bool?boolBoxed,
                                          int intPrimitive,
                                          int?intBoxed,
                                          long longPrimitive,
                                          long?longBoxed,
                                          char charPrimitive,
                                          char?charBoxed,
                                          short shortPrimitive,
                                          short?shortBoxed,
                                          byte bytePrimitive,
                                          byte?byteBoxed,
                                          float floatPrimitive,
                                          float?floatBoxed,
                                          double doublePrimitive,
                                          double?doubleBoxed,
                                          string str,
                                          SupportEnum @enum)
        {
            var theEvent = new SupportBean
            {
                BoolPrimitive   = boolPrimitive,
                BoolBoxed       = boolBoxed,
                IntPrimitive    = intPrimitive,
                IntBoxed        = intBoxed,
                LongPrimitive   = longPrimitive,
                LongBoxed       = longBoxed,
                CharPrimitive   = charPrimitive,
                CharBoxed       = charBoxed,
                ShortPrimitive  = shortPrimitive,
                ShortBoxed      = shortBoxed,
                BytePrimitive   = bytePrimitive,
                ByteBoxed       = byteBoxed,
                FloatPrimitive  = floatPrimitive,
                FloatBoxed      = floatBoxed,
                DoublePrimitive = doublePrimitive,
                DoubleBoxed     = doubleBoxed,
                TheString       = str,
                EnumValue       = @enum
            };

            _epService.EPRuntime.SendEvent(theEvent);
        }
Пример #15
0
 public void SetEnumValue(SupportEnum enumValue)
 {
     this.enumValue = enumValue;
 }
 public MyAnnotationValueEnumTwoAttribute(SupportEnum supportEnum)
 {
     SupportEnum = supportEnum;
 }
Пример #17
0
        private void SendEvent(EPServiceProvider epService, string theString, double?doubleBoxed, SupportEnum enumVal)
        {
            var bean = new SupportBean();

            bean.TheString   = theString;
            bean.DoubleBoxed = doubleBoxed;
            bean.EnumValue   = enumVal;
            epService.EPRuntime.SendEvent(bean);
        }
Пример #18
0
 public SupportBeanWithEnum(String stringValue, SupportEnum supportEnum)
 {
     TheString   = stringValue;
     SupportEnum = supportEnum;
 }
Пример #19
0
        private void SendSupportBeanEvent(EPServiceProvider epService, string theString, SupportEnum supportEnum)
        {
            var theEvent = new SupportBeanWithEnum(theString, supportEnum);

            epService.EPRuntime.SendEvent(theEvent);
        }
Пример #20
0
 public void Update(
     string theString,
     SupportEnum supportEnum)
 {
     AddIndication(new object[] {theString, supportEnum});
 }
Пример #21
0
 public void Update(String stringValue, SupportEnum supportEnum)
 {
     indicate.Add(new Object[] { stringValue, supportEnum });
 }