Patreon / patreon-java

Interact with the Patreon API via OAuth
Apache License 2.0
53 stars 26 forks source link

Fix test module code style #31

Open mamadaliev opened 5 years ago

mamadaliev commented 5 years ago

Hello, @Patreon! Please merge my changes if you think these changes are correct.

1. Optimize imports in PatreonAPITest and PatreonOAuthTest classes.

// from:
import org.mockito.Matchers;
import org.powermock.api.mockito.PowerMockito;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

// to:
import org.mockito.*;

2. Fix assertion to simplify in PatreonAPITest class.

// from:
assertEquals(false, campaign.isChargedImmediately());

// to:
assertFalse(campaign.isChargedImmediately());

3. Fix property access modifier to private.

// from:
PatreonOAuth oauth = ...

// to:
private PatreonOAuth oauth = ...

4. Remove "Exception" from "testAuthorizationURL" throws list.

// from:
public void testAuthorizationURL() throws Exception ...

// to:
public void testAuthorizationURL() ...

Please do not mark this as spam.