• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #41

24 Aug 2023 04:59PM UTC coverage: 50.458% (+0.01%) from 50.444%
#41

push

github-actions

web-flow
Fix Checkstyle Violations in "Impl" Classes (#53)

241 of 241 new or added lines in 32 files covered. (100.0%)

3417 of 6772 relevant lines covered (50.46%)

0.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/smartsheet/api/internal/TokenResourcesImpl.java
1
package com.smartsheet.api.internal;
2

3
/*
4
 * #[license]
5
 * Smartsheet Java SDK
6
 * %%
7
 * Copyright (C) 2023 Smartsheet
8
 * %%
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
 * you may not use this file except in compliance with the License.
11
 * You may obtain a copy of the License at
12
 *
13
 *      http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing, software
16
 * distributed under the License is distributed on an "AS IS" BASIS,
17
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
 * See the License for the specific language governing permissions and
19
 * limitations under the License.
20
 * %[license]
21
 */
22

23
import com.smartsheet.api.InvalidRequestException;
24
import com.smartsheet.api.SmartsheetException;
25
import com.smartsheet.api.TokenResources;
26
import com.smartsheet.api.internal.http.HttpClientException;
27
import com.smartsheet.api.internal.json.JSONSerializerException;
28
import com.smartsheet.api.oauth.OAuthTokenException;
29
import com.smartsheet.api.oauth.Token;
30

31
import java.net.URISyntaxException;
32

33
public class TokenResourcesImpl extends AbstractResources implements TokenResources {
34

35
    public TokenResourcesImpl(SmartsheetImpl smartsheet) {
36
        super(smartsheet);
×
37
    }
×
38

39
    /**
40
     * Obtain a new token.
41
     *
42
     * @throws NoSuchMethodException method implemented in OAuthFlow
43
     */
44
    public void getAccessToken() throws NoSuchMethodException {
45
        throw new NoSuchMethodException("Not implemented in TokenResources. Refer OAuthFlow.");
×
46
    }
47

48
    /**
49
     * Revoke access token used to make this request.
50
     * <p>
51
     * Exceptions:
52
     * @throws OAuthTokenException the o auth token exception
53
     * @throws JSONSerializerException the JSON serializer exception
54
     * @throws HttpClientException the http client exception
55
     * @throws URISyntaxException the URI syntax exception
56
     * @throws InvalidRequestException the invalid request exception
57
     */
58
    public void revokeAccessToken() throws OAuthTokenException, JSONSerializerException, HttpClientException,
59
            URISyntaxException, InvalidRequestException, SmartsheetException {
60
        this.deleteResource("token", Token.class);
×
61
    }
×
62

63
    /**
64
     * Refresh token.
65
     *
66
     * @throws NoSuchMethodException exception that is always thrown
67
    */
68
    public void refreshAccessToken() throws NoSuchMethodException {
69
        throw new NoSuchMethodException("Not implemented in TokenResources. Refer OAuthFlow.");
×
70
    }
71
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc