@Test public void shouldBuildRelationsOfControllersUsingMethodNameByDefault() throws Exception { when(router.urlFor(Controller.class, doIt)).thenReturn("http: builder.relation(Controller.class).doIt(); assertThat(builder, hasRelation("doIt", "http: }
public WithName relation(String name) { return new WithNameImpl(name); }
DefaultRelationBuilder implements RelationBuilder { public WithName relation(String name) { return new WithNameImpl(name); } }
DefaultRelationBuilder implements RelationBuilder { public WithName relation(String name) { return new WithNameImpl(name); } DefaultRelationBuilder(Router router, Proxifier proxifier); }
DefaultRelationBuilder implements RelationBuilder { public WithName relation(String name) { return new WithNameImpl(name); } DefaultRelationBuilder(Router router, Proxifier proxifier); void add(Relation relation); WithName relation(String name); List<Relation> getRelations(); T relation(final Class<T> type); }
DefaultRelationBuilder implements RelationBuilder { public WithName relation(String name) { return new WithNameImpl(name); } DefaultRelationBuilder(Router router, Proxifier proxifier); void add(Relation relation); WithName relation(String name); List<Relation> getRelations(); T relation(final Class<T> type);  }