public void TestPatternMicrosecondResolutionCrontab() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.TimeSource.TimeUnit = TimeUnit.MICROSECONDS; RegressionRunner.Run(session, new PatternMicrosecondResolutionCrontab()); session.Dispose(); }
public void TestClientInstrumentMetricsReportingDisableRuntime() { RegressionSession session = RegressionRunner.Session(); ApplyMetricsConfig(session.Configuration, 10000, 10000); RegressionRunner.Run(session, new ClientInstrumentMetricsReportingDisableRuntime()); session.Dispose(); }
public void TestClientInstrumentMetricsReportingStmtGroups() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Compiler.ByteCode.AllowSubscriber = true; ApplyMetricsConfig(session.Configuration, -1, 7000); ConfigurationRuntimeMetricsReporting.StmtGroupMetrics groupOne = new ConfigurationRuntimeMetricsReporting.StmtGroupMetrics(); groupOne.Interval = 8000; groupOne.AddIncludeLike("%GroupOne%"); groupOne.IsReportInactive = true; session.Configuration.Runtime.MetricsReporting.AddStmtGroup("GroupOneStatements", groupOne); ConfigurationRuntimeMetricsReporting.StmtGroupMetrics groupTwo = new ConfigurationRuntimeMetricsReporting.StmtGroupMetrics(); groupTwo.Interval = 6000; groupTwo.IsDefaultInclude = true; groupTwo.AddExcludeLike("%Default%"); groupTwo.AddExcludeLike("%Metrics%"); session.Configuration.Runtime.MetricsReporting.AddStmtGroup("GroupTwoNonDefaultStatements", groupTwo); ConfigurationRuntimeMetricsReporting.StmtGroupMetrics groupThree = new ConfigurationRuntimeMetricsReporting.StmtGroupMetrics(); groupThree.Interval = -1; groupThree.AddIncludeLike("%Metrics%"); session.Configuration.Runtime.MetricsReporting.AddStmtGroup("MetricsStatements", groupThree); RegressionRunner.Run(session, new ClientInstrumentMetricsReportingStmtGroups()); session.Dispose(); }
public void TestEPLFromClauseMethodVariable() { RegressionSession session = RegressionRunner.Session(); Configuration configuration = session.Configuration; configuration.Common.AddMethodRef(typeof(EPLFromClauseMethodVariable.MyStaticService), new ConfigurationCommonMethodRef()); configuration.Common.AddImportType(typeof(EPLFromClauseMethodVariable.MyStaticService)); configuration.Common.AddImportType(typeof(EPLFromClauseMethodVariable.MyNonConstantServiceVariableFactory)); configuration.Common.AddImportType(typeof(EPLFromClauseMethodVariable.MyNonConstantServiceVariable)); ConfigurationCommon common = configuration.Common; common.AddVariable("MyConstantServiceVariable", typeof(EPLFromClauseMethodVariable.MyConstantServiceVariable), new EPLFromClauseMethodVariable.MyConstantServiceVariable()); common.AddVariable("MyNonConstantServiceVariable", typeof(EPLFromClauseMethodVariable.MyNonConstantServiceVariable), new EPLFromClauseMethodVariable.MyNonConstantServiceVariable("postfix")); common.AddVariable("MyNullMap", typeof(EPLFromClauseMethodVariable.MyMethodHandlerMap), null); common.AddVariable("MyMethodHandlerMap", typeof(EPLFromClauseMethodVariable.MyMethodHandlerMap), new EPLFromClauseMethodVariable.MyMethodHandlerMap("a", "b")); common.AddVariable("MyMethodHandlerOA", typeof(EPLFromClauseMethodVariable.MyMethodHandlerOA), new EPLFromClauseMethodVariable.MyMethodHandlerOA("a", "b")); configuration.Common.Logging.IsEnableQueryPlan = true; configuration.Common.AddEventType(typeof(SupportBean)); configuration.Common.AddEventType(typeof(SupportBean_S0)); configuration.Common.AddEventType(typeof(SupportBean_S1)); configuration.Common.AddEventType(typeof(SupportBean_S2)); RegressionRunner.Run(session, EPLFromClauseMethodVariable.Executions()); session.Dispose(); }
public void TestClientSubscriberDisallowed() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.AddEventType(typeof(SupportBean)); RegressionRunner.Run(session, new ClientRuntimeSubscriberDisallowed()); session.Dispose(); }
public void TestPatternObserverTimerScheduleTimeZoneEST() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Runtime.Expression.TimeZone = TimeZoneHelper.GetTimeZoneInfo("GMT-4:00"); RegressionRunner.Run(session, new PatternObserverTimerScheduleTimeZoneEST()); session.Dispose(); }
public void TestContextKeySegmentedPrioritized() { RegressionSession session = RegressionRunner.Session(); ConfigurePrioritized(session.Configuration); RegressionRunner.Run(session, new ContextKeySegmentedPrioritized()); session.Dispose(); }
public void TestContextInitTermPrioritized() { RegressionSession session = RegressionRunner.Session(); ConfigurePrioritized(session.Configuration); RegressionRunner.Run(session, ContextInitTermPrioritized.Executions()); session.Dispose(); }
public void TestViewGroupMicroseconds() { RegressionSession session = RegressionRunner.Session(); ConfigureMicroseconds(session); RegressionRunner.Run(session, new ViewGroup.ViewGroupReclaimWithFlipTime(5000000)); session.Dispose(); }
public void TestMax4Prevent() { RegressionSession session = RegressionRunner.Session(); Configure(4, true, session.Configuration); RegressionRunner.Run(session, new PatternOperatorFollowedByMax4Prevent()); session.Dispose(); }
public void TestEventBeanPropertyResolutionCaseDistinctInsensitive() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.EventMeta.ClassPropertyResolutionStyle = PropertyResolutionStyle.DISTINCT_CASE_INSENSITIVE; session.Configuration.Common.AddEventType(typeof(SupportBeanDupProperty)); RegressionRunner.Run(session, new EventBeanPropertyResolutionCaseDistinctInsensitive()); session.Dispose(); }
public void TestEventBeanPropertyResolutionAccessorStyleGlobalPublic() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.EventMeta.DefaultAccessorStyle = AccessorStyle.PUBLIC; session.Configuration.Common.AddEventType(typeof(SupportLegacyBean)); RegressionRunner.Run(session, new EventBeanPropertyResolutionAccessorStyleGlobalPublic()); session.Dispose(); }
public void TestResultSetOutputLimitChangeSetOpt() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.AddEventType(typeof(SupportBean)); session.Configuration.Compiler.ViewResources.OutputLimitOpt = false; RegressionRunner.Run(session, new ResultSetOutputLimitChangeSetOpt(false)); session.Dispose(); }
public void TestEPLOtherIStreamRStreamConfigSelectorRStream() { var session = RegressionRunner.Session(); session.Configuration.Compiler.StreamSelection.DefaultStreamSelector = StreamSelector.RSTREAM_ONLY; session.Configuration.Common.AddEventType(typeof(SupportBean)); RegressionRunner.Run(session, new EPLOtherIStreamRStreamConfigSelectorRStream()); session.Dispose(); }
public void TestEPLScriptExpressionDisable() { var session = RegressionRunner.Session(); session.Configuration.Common.AddEventType(typeof(SupportBean)); session.Configuration.Compiler.ByteCode.IsAllowInlinedClass = false; RegressionRunner.Run(session, new ExprClassDisable()); session.Dispose(); }
public void TestEventBeanPropertyResolutionCaseInsensitiveEngineDefault() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.EventMeta.ClassPropertyResolutionStyle = PropertyResolutionStyle.CASE_INSENSITIVE; session.Configuration.Common.AddEventType("BeanWCIED", typeof(SupportBean)); RegressionRunner.Run(session, new EventBeanPropertyResolutionCaseInsensitiveEngineDefault()); session.Dispose(); }
public void TestViewTimeWinWSystemTime() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.AddEventType(typeof(SupportMarketDataBean)); session.Configuration.Runtime.Threading.IsInternalTimerEnabled = true; RegressionRunner.Run(session, new ViewTimeWinWSystemTime()); session.Dispose(); }
public void TestResultSetAggregateExtInvalid() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Compiler.Expression.ExtendedAggregation = false; session.Configuration.Common.AddEventType(typeof(SupportBean)); RegressionRunner.Run(session, new ResultSetAggregateExtInvalid()); session.Dispose(); }
public void TestRowRecogIntervalMicrosecondResolution() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.AddEventType(typeof(SupportBean)); session.Configuration.Common.TimeSource.TimeUnit = TimeUnit.MICROSECONDS; RegressionRunner.Run(session, new RowRecogIntervalResolution(10000000)); session.Dispose(); }
public void TestResultSetQueryTypeRowPerGroupReclaimMicrosecondResolution() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.AddEventType(typeof(SupportBean)); session.Configuration.Common.TimeSource.TimeUnit = TimeUnit.MICROSECONDS; RegressionRunner.Run(session, new ResultSetQueryTypeRowPerGroupReclaimMicrosecondResolution(5000000)); session.Dispose(); }
public void TestEPLSubselectCorrelatedAggregationPerformance() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Runtime.Expression.IsSelfSubselectPreeval = false; session.Configuration.Common.AddEventType(typeof(SupportBean)); RegressionRunner.Run(session, new EPLSubselectOrderOfEvalNoPreeval()); session.Dispose(); }
public void TestResultSetAggregateFilteredWMathContext() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Compiler.Expression.MathContext = new MathContext(MidpointRounding.AwayFromZero, 2); session.Configuration.Common.AddEventType(typeof(SupportBeanNumeric)); RegressionRunner.Run(session, new ResultSetAggregateFilteredWMathContext()); session.Dispose(); }
public void testEPLScriptExpressionDisable() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.AddEventType<SupportBean>(); session.Configuration.Compiler.Scripts.IsEnabled = false; RegressionRunner.Run(session, new EPLScriptExpressionDisable()); session.Dispose(); }
public void TestEPLScriptExpressionConfiguration() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.AddEventType(typeof(SupportBean)); session.Configuration.Compiler.Scripts.DefaultDialect = "dummy"; RegressionRunner.Run(session, new EPLScriptExpressionConfiguration()); session.Dispose(); }
public void TestExprDTMicrosecondResolution() { var session = RegressionRunner.Session(); session.Configuration.Common.AddEventType(typeof(SupportDateTime)); session.Configuration.Common.TimeSource.TimeUnit = TimeUnit.MICROSECONDS; TestSuiteExprDateTime.AddIdStsEtsEvent(session.Configuration); RegressionRunner.Run(session, ExprDTResolution.Executions(true)); session.Dispose(); }
public void TestClientRuntimeAnnotationImportInvalid() { RegressionSession session = RegressionRunner.Session(); session.Configuration.Common.AddAnnotationImportType(typeof(SupportEnum)); session.Configuration.Common.AddAnnotationImportType(typeof(MyAnnotationValueEnumAttribute)); session.Configuration.Common.AddEventType(typeof(SupportBean)); RegressionRunner.Run(session, new ClientRuntimeStatementAnnotation.ClientRuntimeAnnotationImportInvalid()); session.Dispose(); }
public void TestRowRecogMaxStatesEngineWide4Instance() { RegressionSession session = RegressionRunner.Session(); Configure(session.Configuration); session.Configuration.Runtime.MatchRecognize.MaxStates = 4L; session.Configuration.Runtime.MatchRecognize.IsMaxStatesPreventStart = true; RegressionRunner.Run(session, new RowRecogMaxStatesEngineWide4Instance()); session.Dispose(); }
public void TestExprCoreBigNumberSupportMathContext() { var session = RegressionRunner.Session(); session.Configuration.Common.AddEventType(typeof(SupportBean)); session.Configuration.Compiler.Expression.MathContext = MathContext.DECIMAL32; session.Configuration.Compiler.ByteCode.AllowSubscriber = true; RegressionRunner.Run(session, ExprCoreBigNumberSupportMathContext.Executions()); session.Dispose(); }
public void TestExprCoreMathDivisionRules() { var session = RegressionRunner.Session(); session.Configuration.Compiler.Expression.IntegerDivision = true; session.Configuration.Compiler.Expression.DivisionByZeroReturnsNull = true; session.Configuration.Common.AddEventType("SupportBean", typeof(SupportBean)); RegressionRunner.Run(session, ExprCoreMathDivisionRules.Executions()); session.Dispose(); }
public void TestExprCoreConcatThreadingProfileLarge() { var session = RegressionRunner.Session(); var configuration = session.Configuration; configuration.Common.Execution.ThreadingProfile = ThreadingProfile.LARGE; configuration.Common.AddEventType(typeof(SupportBean_S0)); RegressionRunner.Run(session, new ExprCoreConcat()); session.Dispose(); }