Ejemplo n.º 1
0
        public void SolrOperationRunnerCancelsAllJobsSuccessfully()
        {
            ISolrOperationRunner runner = new SolrOperationRunner(_stubDirectory.Object, _stubRestClient.Object, _log.Object);

            runner.StartAllOperations();
            runner.StopAllOperations();
            Assert.IsFalse(runner.SolrOperations.Any(x => x.IsRunning));
        }
Ejemplo n.º 2
0
        public void SolrOperationRunnerStartsAllJobsSuccessfully()
        {
            ISolrOperationRunner runner = new SolrOperationRunner(_stubDirectory.Object, _stubRestClient.Object, _log.Object);

            runner.StartAllOperations();

            Assert.AreEqual(2, runner.SolrOperations.Count(x => x.IsRunning));
        }
Ejemplo n.º 3
0
        public void SolrOperationRunnerReloadsAllJobsSuccessfully()
        {
            ISolrOperationRunner runner = new SolrOperationRunner(_stubDirectory.Object, _stubRestClient.Object, _log.Object);

            runner.StartAllOperations();

            //Get the reference
            ISolrOperation earlierOperation = runner.SolrOperations[0];

            //Reload
            runner.ReloadAllOperations();

            Assert.AreNotEqual(earlierOperation, runner.SolrOperations[0]);
        }