Tabnine Logo
Builder.thatCanBeRenamed
Code IndexAdd Tabnine to your IDE (free)

How to use
thatCanBeRenamed
method
in
it.tidalwave.hierarchy.Builder

Best Java code snippets using it.tidalwave.hierarchy.Builder.thatCanBeRenamed (Showing top 15 results out of 315)

origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

/*******************************************************************************************************************
 *
 * Specifies that the object to build can be renamed.
 *
 * @return               itself
 *
 ******************************************************************************************************************/
@Nonnull
public Builder<T> thatCanBeRenamed()
 {
  return thatCanBeRenamed(true);
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableViewMustHaveAnId()
 {
  final HView view = hvManager.createView().
                 withDisplayName("My View 1").
                 thatCanBeRenamed().
                 build();
  assertThat(view, is(notNullValue()));
  assertThat(view.getId(), is(notNullValue()));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableItemMustHaveAnId()
 {
  final HItem item = fixture.createChild().
                withDisplayName("My Item 1").
                thatCanBeRenamed().
                build();
  assertThat(item, is(notNullValue()));
  assertThat(item.getId(), is(notNullValue()));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableItemMustReturnTheRightView()
 {
  final HItem item = fixture.createChild().
                withDisplayName("My Item 1").
                thatCanBeRenamed().
                build();
  assertThat(item, is(notNullValue()));
  assertThat(item.getView(), is(sameInstance(fixture)));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableViewMustHaveTheCorrectName()
 {
  final HView view = hvManager.createView().
                 withDisplayName("My View 1").
                 thatCanBeRenamed().
                 build();
  assertThat(view, is(notNullValue()));
  assertThat(view.as(Displayable).getDisplayName(), is("My View 1"));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableItemMustHaveTheCorrectName()
 {
  final HItem item = fixture.createChild().
                withDisplayName("My Item 1").
                thatCanBeRenamed().
                build();
  assertThat(item, is(notNullValue()));
  assertThat(item.as(Displayable).getDisplayName(), is("My Item 1"));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableItemMustReturnTheRightView()
 {
  final HItem item = fixture.createChild().
                withDisplayName("My Item 1").
                thatCanBeRenamed().
                build();
  assertThat(item, is(notNullValue()));
  assertThat(item.getView(), is(sameInstance(fixture.getView())));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableViewCanBeRenamed()
 {
  final HView view = hvManager.createView().
                 withDisplayName("My View 1").
                 thatCanBeRenamed().
                 build();
  assertThat(view, is(notNullValue()));
  view.as(MutableDisplayable.class).setDisplayName("New View Name");
  assertThat(view.as(Displayable).getDisplayName(), is("New View Name"));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test(expected=AsException.class)
public void aRenamableItemMustNotBeMovable()
 {
  final HItem item = fixture.createChild().
                withDisplayName("My Item 1").
                thatCanBeRenamed().
                build();
  item.as(Movable);
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableItemCanBeRenamed()
 {
  final HItem item = fixture.createChild().
                withDisplayName("My Item 1").
                thatCanBeRenamed().
                build();
  assertThat(item, is(notNullValue()));
  item.as(MutableDisplayable.class).setDisplayName("New Item Name");
  assertThat(item.as(Displayable).getDisplayName(), is("New Item Name"));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test(expected=AsException.class)
public void aRenamableViewMustNotBeCopiable()
 {
  final HView view = hvManager.createView().
                 withDisplayName("My View 1").
                 thatCanBeRenamed().
                 build();
  view.as(Copiable);
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test(expected=AsException.class)
public void aRenamableViewMustNotBeMovable()
 {
  final HView view = hvManager.createView().
                 withDisplayName("My View 1").
                 thatCanBeRenamed().
                 build();
  view.as(Movable);
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableViewMustBeInitiallyEmpty()
 {
  final HView view = hvManager.createView().
                 withDisplayName("My View 1").
                 thatCanBeRenamed().
                 build();
  assertThat(view.findChildren().count(), is(0));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test
public void aRenamableItemMustBeInitiallyEmpty()
 {
  final HItem item = fixture.createChild().
                withDisplayName("My Item 1").
                thatCanBeRenamed().
                build();
  assertThat(item.findChildren().count(), is(0));
 }
origin: it.tidalwave.netbeans/it-tidalwave-hierarchy

@Test(expected=AsException.class)
public void aRenamableItemMustNotBeCopiable()
 {
  final HItem item = fixture.createChild().
                withDisplayName("My Item 1").
                thatCanBeRenamed().
                build();
  item.as(Copiable);
 }
it.tidalwave.hierarchyBuilderthatCanBeRenamed

Javadoc

Specifies that the object to build can be renamed.

Popular methods of Builder

  • build
    Builds the object.
  • withDisplayName
    Specifies the display name of the object to build.
  • withId
    Specifies the id of the object to build.
  • boundTo
    Specifies the Object that will be logically bound with the object to create.

Popular in Java

  • Creating JSON documents from java classes using gson
  • getApplicationContext (Context)
  • startActivity (Activity)
  • findViewById (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFrame (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top plugins for WebStorm
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