AuthTestUtils.loginAndSetToken(host, usernameFoo, "password");
AuthTestUtils.loginAndSetToken(host, usernameFoo, "password");
AuthTestUtils.loginAndSetToken(this.host, "foo@example.com", "password"); AuthTestUtils.loginAndSetToken(this.host, "bar@example.com", "password"); Operation factoryGetBar = Operation.createGet(this.host, ExampleNonPersistedService.FACTORY_LINK); ServiceDocumentQueryResult factoryGetResultBar = sender.sendAndWait(factoryGetBar, ServiceDocumentQueryResult.class);
AuthTestUtils.loginAndSetToken(this.host, "foo@example.com", "password"); AuthTestUtils.loginAndSetToken(this.host, "bar@example.com", "password"); Operation factoryGetBar = Operation.createGet(this.host, ExampleNonPersistedService.FACTORY_LINK); ServiceDocumentQueryResult factoryGetResultBar = sender.sendAndWait(factoryGetBar, ServiceDocumentQueryResult.class);
String fooAuthToken = AuthTestUtils.loginAndSetToken(this.host, usernameFoo, "password"); String barAuthToken = AuthTestUtils.loginAndSetToken(this.host, usernameBar, "password"); AuthTestUtils.loginAndSetToken(this.host, usernameBaz, "password");
String fooAuthToken = AuthTestUtils.loginAndSetToken(this.host, usernameFoo, "password"); String barAuthToken = AuthTestUtils.loginAndSetToken(this.host, usernameBar, "password"); AuthTestUtils.loginAndSetToken(this.host, usernameBaz, "password");
AuthTestUtils.loginAndSetToken(nodeGroup, username, "password");
AuthTestUtils.loginAndSetToken(nodeGroup, username, "password");