1 package org.starobjects.tested.fitnesse.internal.helpers;
2
3 import org.nakedobjects.runtime.installers.InstallerLookup;
4 import org.nakedobjects.runtime.viewer.NakedObjectsViewer;
5 import org.nakedobjects.runtime.viewer.NakedObjectsViewerInstaller;
6 import org.starobjects.tested.fitnesse.StoryFixture;
7
8 public class StartClient {
9
10 private final StoryFixture storyFixture;
11
12 public StartClient(final StoryFixture storyFixture) {
13 this.storyFixture = storyFixture;
14 }
15
16 public void run() {
17 final InstallerLookup installerLookup = storyFixture
18 .getInstallerLookup();
19
20 final NakedObjectsViewerInstaller viewerInstaller = installerLookup
21 .viewerInstaller("dnd");
22 final NakedObjectsViewer viewer = viewerInstaller.createViewer();
23
24 viewer.init();
25 }
26
27 }