24252627282930
} @Override public User to(UriInfo uriInfo, UserRepresentation representation) { // TODO: figure out difference between /{id} and handle in representation return update(uriInfo, representation, new User(representation.getHandle())); }
79808182838485
then(). statusCode(Status.SEE_OTHER.getStatusCode()). when(). get(whoAmIURL.toExternalForm()); } }).inspect(new SetupAuth(new User("testuser"))); }
44454647484950
@Inject private Repository<User> repository; @Override protected User createNewDomainObject() { return new User(UUID.randomUUID().toString()).setBio("Bio"); }
891011121314
public class UserValidationTestCase extends TimestampableSpecification<User> { @Override protected User createInstance() throws Exception { return new User(""); }
464748495051525354
return "user"; } @Override protected User createDomainObject() { return new User(UUID.randomUUID().toString()) .setName("Name") .setBio("Bio"); }