Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public SupportBeanWithEnum(
     string theString,
     SupportEnum supportEnum)
 {
     TheString = theString;
     SupportEnum = supportEnum;
 }
Ejemplo n.º 3
0
        private void SendSupportBeanEvent(String stringValue,
                                          SupportEnum supportEnum)
        {
            var theEvent = new SupportBeanWithEnum(stringValue, supportEnum);

            _epService.EPRuntime.SendEvent(theEvent);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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});
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 15
0
 public void SetEnumValue(SupportEnum enumValue)
 {
     this.enumValue = enumValue;
 }
 public MyAnnotationValueEnumTwoAttribute(SupportEnum supportEnum)
 {
     SupportEnum = supportEnum;
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 18
0
 public SupportBeanWithEnum(String stringValue, SupportEnum supportEnum)
 {
     TheString   = stringValue;
     SupportEnum = supportEnum;
 }
Ejemplo n.º 19
0
        private void SendSupportBeanEvent(EPServiceProvider epService, string theString, SupportEnum supportEnum)
        {
            var theEvent = new SupportBeanWithEnum(theString, supportEnum);

            epService.EPRuntime.SendEvent(theEvent);
        }
Ejemplo n.º 20
0
 public void Update(
     string theString,
     SupportEnum supportEnum)
 {
     AddIndication(new object[] {theString, supportEnum});
 }
Ejemplo n.º 21
0
 public void Update(String stringValue, SupportEnum supportEnum)
 {
     indicate.Add(new Object[] { stringValue, supportEnum });
 }