Examples of patterns()


Examples of com.google.eclipse.protobuf.ui.preferences.editor.numerictag.NumericTagPreferences.patterns()

    EObject parent = target.eContainer();
    if (parent == null) {
      return;
    }
    NumericTagPreferences preferences = new NumericTagPreferences(storeAccess);
    for (String pattern : preferences.patterns()) {
      Pair<INode, Matcher> match = commentNodesFinder.matchingCommentNode(parent, pattern);
      if (match == null) {
        return;
      }
      String original = match.getSecond().group();
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.targets.RepositoryTarget.patterns()

    final RepositoryTarget target = targets().get(id);
    assertThat(target.id(), is(id));
    assertThat(target.name(), is(id + "name"));
    assertThat(target.contentClass(), is("maven2"));
    assertThat(target.patterns(), contains("test1", "test2"));
  }

  private RepositoryTarget createTarget(final String id, final String... patterns) {
    return targets().create(id).withName(id + "name")
        .withContentClass("maven2").withPatterns(patterns)
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.targets.RepositoryTarget.patterns()

  public void updateTarget() {
    RepositoryTarget target = createTarget("updateTarget", "pattern1", "pattern2");

    target.withName("updatedTarget").addPattern("pattern3").save();
    target = targets().get("updateTarget");
    assertThat(target.patterns(), hasItem("pattern3"));
    assertThat(target.name(), is("updatedTarget"));
  }

  @Test(expected = NexusClientNotFoundException.class)
  public void deleteTarget() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.