@Test public void checkMethodWillNotBeUsed() { TestObserver<TokenRequest> testObserver = umaTokenGranter.resolveRequest(tokenRequest, client, null).test(); testObserver.assertNotComplete().assertError(TechnicalException.class); }
protected Single<TokenRequest> resolveRequest(TokenRequest tokenRequest, Client client, User endUser) { return Single.error(new TechnicalException("Should not be used")); }
UMATokenGranter extends AbstractTokenGranter { protected Single<TokenRequest> resolveRequest(TokenRequest tokenRequest, Client client, User endUser) { return Single.error(new TechnicalException("Should not be used")); } }
UMATokenGranter extends AbstractTokenGranter { protected Single<TokenRequest> resolveRequest(TokenRequest tokenRequest, Client client, User endUser) { return Single.error(new TechnicalException("Should not be used")); } UMATokenGranter();  UMATokenGranter(TokenService tokenService,
                           UserAuthenticationManager userAuthenticationManager,
                           PermissionTicketService permissionTicketService,
                           ResourceService resourceService,
                           JWTService jwtService,
                           Domain domain,
                           RulesEngine rulesEngine,
                           ExecutionContextFactory executionContextFactory); }
UMATokenGranter extends AbstractTokenGranter { protected Single<TokenRequest> resolveRequest(TokenRequest tokenRequest, Client client, User endUser) { return Single.error(new TechnicalException("Should not be used")); } UMATokenGranter();  UMATokenGranter(TokenService tokenService,
                           UserAuthenticationManager userAuthenticationManager,
                           PermissionTicketService permissionTicketService,
                           ResourceService resourceService,
                           JWTService jwtService,
                           Domain domain,
                           RulesEngine rulesEngine,
                           ExecutionContextFactory executionContextFactory); @Override boolean handle(String grantType, Client client); @Override Single<Token> grant(TokenRequest tokenRequest, Client client); }
UMATokenGranter extends AbstractTokenGranter { protected Single<TokenRequest> resolveRequest(TokenRequest tokenRequest, Client client, User endUser) { return Single.error(new TechnicalException("Should not be used")); } UMATokenGranter();  UMATokenGranter(TokenService tokenService,
                           UserAuthenticationManager userAuthenticationManager,
                           PermissionTicketService permissionTicketService,
                           ResourceService resourceService,
                           JWTService jwtService,
                           Domain domain,
                           RulesEngine rulesEngine,
                           ExecutionContextFactory executionContextFactory); @Override boolean handle(String grantType, Client client); @Override Single<Token> grant(TokenRequest tokenRequest, Client client);  }