Free cookie consent management tool by TermsFeed Policy Generator

Changeset 6433 for branches


Ignore:
Timestamp:
06/16/11 15:22:13 (13 years ago)
Author:
cneumuel
Message:

#1233

  • fixed build errors
Location:
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Tests/ExperimentManagerTests.cs

    r5599 r6433  
    2020#endregion
    2121
     22using System;
    2223using System.Threading;
    2324using HeuristicLab.Algorithms.GeneticAlgorithm;
    24 using HeuristicLab.Core;
    2525using HeuristicLab.Optimization;
    2626using HeuristicLab.Problems.TestFunctions;
    27 using HeuristicLab.Services.Hive;
    2827using Microsoft.VisualStudio.TestTools.UnitTesting;
    2928
     
    3130  [TestClass]
    3231  public class ExperimentManagerTests {
    33 
     32    private TestContext testContextInstance;
     33    public TestContext TestContext {
     34      get { return testContextInstance; }
     35      set { testContextInstance = value; }
     36    }
    3437
    3538    [ClassInitialize]
    3639    public static void MyClassInitialize(TestContext testContext) {
    37       //PluginLoader.pluginAssemblies.Any();
    3840      //ServiceLocator.Instance = new MockServiceLocator();
    3941    }
     
    4143    [TestMethod]
    4244    public void TestExperimentUpload() {
    43       HiveExperimentClient hec = new HiveExperimentClient();
     45      var rhc = new RefreshableHiveExperiment();
    4446      var optimizer = CreateOptimizer();
    45       hec.HiveJob = new HiveJob(optimizer);
     47      rhc.HiveExperiment.HiveJobs.Add(new OptimizerHiveJob(optimizer));
     48     
     49      HiveClient.StartExperiment((Exception ex) => TestContext.WriteLine(ex.ToString()), rhc);
    4650
    47       hec.Start();
    48 
    49       while (hec.ExecutionState != ExecutionState.Stopped) {
     51      while (rhc.HiveExperiment.ExecutionState != Core.ExecutionState.Stopped) {
    5052        Thread.Sleep(500);
    5153      }
     
    5961      return ga;
    6062    }
    61 
    6263  }
    6364}
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.Tests/HeuristicLab.Clients.Hive.Tests-3.4.csproj

    r6385 r6433  
    363363    </ProjectReference>
    364364  </ItemGroup>
    365   <ItemGroup />
     365  <ItemGroup>
     366    <None Include="app.config" />
     367  </ItemGroup>
    366368  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
    367369  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Note: See TracChangeset for help on using the changeset viewer.