//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void shouldReturnEmptySetOnNullArgument() throws Exception
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ShouldReturnEmptySetOnNullArgument()
        {
            // given
            ProcedureJarLoader jarloader = new ProcedureJarLoader(new ReflectiveProcedureCompiler(new TypeMappers(), new ComponentRegistry(), RegistryWithUnsafeAPI(), _log, ProcedureConfig()), NullLog.Instance);

            // when
            ProcedureJarLoader.Callables callables = jarloader.LoadProceduresFromDir(null);

            // then
            assertEquals(0, callables.Procedures().Count + callables.Functions().Count);
        }
Beispiel #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void start() throws Throwable
        public override void Start()
        {
            ProcedureJarLoader loader = new ProcedureJarLoader(_compiler, _log);

            ProcedureJarLoader.Callables callables = loader.LoadProceduresFromDir(_pluginDir);
            foreach (CallableProcedure procedure in callables.Procedures())
            {
                Register(procedure);
            }

            foreach (CallableUserFunction function in callables.Functions())
            {
                Register(function);
            }

            foreach (CallableUserAggregationFunction function in callables.AggregationFunctions())
            {
                Register(function);
            }

            // And register built-in procedures
            _builtin.accept(this);
        }