@Test public void testGetOneDriveUrl() throws Exception { Optional<String> businessResource = provider.getOneDriveForBusinessResource(); assertFalse(businessResource.isPresent()); }
protected Optional<String> getOneDriveForBusinessResource() { GenericUrl tokenServerUrl = new GenericUrl(getTokenServerURL()); return Optional.ofNullable((String) tokenServerUrl.getFirst("resource")).map( resource -> resource.replaceAll("\\\\/", "/")); }
OneDriveOAuth2ServiceProvider extends AbstractLiveConnectOAuth2ServiceProvider { protected Optional<String> getOneDriveForBusinessResource() { GenericUrl tokenServerUrl = new GenericUrl(getTokenServerURL()); return Optional.ofNullable((String) tokenServerUrl.getFirst("resource")).map( resource -> resource.replaceAll("\\\\/", "/")); } }
OneDriveOAuth2ServiceProvider extends AbstractLiveConnectOAuth2ServiceProvider { protected Optional<String> getOneDriveForBusinessResource() { GenericUrl tokenServerUrl = new GenericUrl(getTokenServerURL()); return Optional.ofNullable((String) tokenServerUrl.getFirst("resource")).map( resource -> resource.replaceAll("\\\\/", "/")); }  }
OneDriveOAuth2ServiceProvider extends AbstractLiveConnectOAuth2ServiceProvider { protected Optional<String> getOneDriveForBusinessResource() { GenericUrl tokenServerUrl = new GenericUrl(getTokenServerURL()); return Optional.ofNullable((String) tokenServerUrl.getFirst("resource")).map( resource -> resource.replaceAll("\\\\/", "/")); }  Function<String, OneDriveAPI> getAPIInitializer(); @Override AuthorizationCodeFlow getAuthorizationCodeFlow(); }
OneDriveOAuth2ServiceProvider extends AbstractLiveConnectOAuth2ServiceProvider { protected Optional<String> getOneDriveForBusinessResource() { GenericUrl tokenServerUrl = new GenericUrl(getTokenServerURL()); return Optional.ofNullable((String) tokenServerUrl.getFirst("resource")).map( resource -> resource.replaceAll("\\\\/", "/")); }  Function<String, OneDriveAPI> getAPIInitializer(); @Override AuthorizationCodeFlow getAuthorizationCodeFlow();  }