Tabnine Logo
ViewSet.getSystemLandscapeViews
Code IndexAdd Tabnine to your IDE (free)

How to use
getSystemLandscapeViews
method
in
com.structurizr.view.ViewSet

Best Java code snippets using com.structurizr.view.ViewSet.getSystemLandscapeViews (Showing top 7 results out of 315)

origin: structurizr/java

@Test
public void test_setEnterpriseContextViews_IsSupportedForOlderWorkspaces() {
  ViewSet views = new Workspace("", "").getViews();
  SystemLandscapeView systemLandscapeView = views.createSystemLandscapeView("key", "Description");
  views.setEnterpriseContextViews(Collections.singleton(systemLandscapeView));
  assertEquals(1, views.getSystemLandscapeViews().size());
  assertSame(systemLandscapeView, views.getSystemLandscapeViews().iterator().next());
}
origin: structurizr/java

/**
 * Writes the views in the given workspace as PlantUML definitions, to the specified writer.
 *
 * @param workspace     the workspace containing the views to be written
 * @param writer        the Writer to write to
 */
public void write(Workspace workspace, Writer writer) {
  if (workspace == null) {
    throw new IllegalArgumentException("A workspace must be provided.");
  }
  if (writer == null) {
    throw new IllegalArgumentException("A writer must be provided.");
  }
  workspace.getViews().getSystemLandscapeViews().forEach(v -> write(v, writer));
  workspace.getViews().getSystemContextViews().forEach(v -> write(v, writer));
  workspace.getViews().getContainerViews().forEach(v -> write(v, writer));
  workspace.getViews().getComponentViews().forEach(v -> write(v, writer));
  workspace.getViews().getDynamicViews().forEach(v -> write(v, writer));
  workspace.getViews().getDeploymentViews().forEach(v -> write(v, writer));
}
origin: structurizr/java

@Test
public void test_writeEnterpriseContextView() throws Exception {
  populateWorkspace();
  SystemLandscapeView systemLandscapeView = workspace.getViews().getSystemLandscapeViews()
    .stream().findFirst().get();
  plantUMLWriter.write(systemLandscapeView, stringWriter);
  assertEquals(SYSTEM_LANDSCAPE_VIEW, stringWriter.toString());
}
origin: structurizr/java

getViews().getSystemLandscapeViews().stream()
    .filter(v -> v.getKey() == null)
    .forEach(v -> warnings.add("System Landscape view \"" + v.getName() + "\": Missing key"));
origin: structurizr/java

@Test
public void test_writeView_ThrowsAnExceptionWhenPassedANullWriter() throws Exception {
  populateWorkspace();
  try {
    plantUMLWriter.write((View) workspace.getViews().getSystemLandscapeViews().stream().findFirst().get(), null);
    fail();
  } catch (Exception e) {
    assertEquals("A writer must be provided.", e.getMessage());
  }
}
origin: structurizr/java

@Test
public void test_backwardsCompatibilityOfRenamingEnterpriseContextViewsToSystemLandscapeViews() throws Exception {
  Workspace workspace = new Workspace("Name", "Description");
  workspace.getViews().createSystemLandscapeView("key", "description");
  JsonWriter jsonWriter = new JsonWriter(false);
  StringWriter stringWriter = new StringWriter();
  jsonWriter.write(workspace, stringWriter);
  String workspaceAsJson = stringWriter.toString();
  workspaceAsJson = workspaceAsJson.replaceAll("systemLandscapeViews", "enterpriseContextViews");
  JsonReader jsonReader = new JsonReader();
  StringReader stringReader = new StringReader(workspaceAsJson);
  workspace = jsonReader.read(stringReader);
  assertEquals(1, workspace.getViews().getSystemLandscapeViews().size());
}
origin: structurizr/java

public void copyLayoutInformationFrom(ViewSet source) {
  for (SystemLandscapeView view : systemLandscapeViews) {
    SystemLandscapeView sourceView = findView(source.getSystemLandscapeViews(), view);
    if (sourceView != null) {
      view.copyLayoutInformationFrom(sourceView);
com.structurizr.viewViewSetgetSystemLandscapeViews

Javadoc

Gets the set of system landscape views.

Popular methods of ViewSet

  • getConfiguration
    Gets the configuration object associated with this set of views.
  • getSystemContextViews
    Gets the set of system context views.
  • createComponentView
    Creates a component view, where the scope of the view is the specified container.
  • createDynamicView
    Creates a dynamic view.
  • createSystemContextView
    Creates a system context view, where the scope of the view is the specified software system.
  • createSystemLandscapeView
    Creates a system landscape view.
  • getComponentViews
    Gets the set of component views.
  • getContainerViews
    Gets the set of container views.
  • getDynamicViews
    Gets the set of dynamic views.
  • createContainerView
    Creates a container view, where the scope of the view is the specified software system.
  • createDeploymentView
    Creates a deployment view.
  • getDeploymentViews
    Gets the set of dynamic views.
  • createDeploymentView,
  • getDeploymentViews,
  • copyLayoutInformationFrom,
  • createFilteredView,
  • assertThatTheContainerIsNotNull,
  • assertThatTheSoftwareSystemIsNotNull,
  • assertThatTheViewIsNotNull,
  • assertThatTheViewKeyIsSpecifiedAndUnique,
  • findView

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now