Skip to content

Commit

Permalink
openhab#15 Remove unused things
Browse files Browse the repository at this point in the history
  • Loading branch information
magx2 committed May 16, 2019
1 parent 233b2a6 commit ddfe8d7
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@
import org.mockito.junit.jupiter.MockitoExtension;
import org.openhab.binding.supla.internal.cloud.api.ChannelsCloudApi;
import org.openhab.binding.supla.internal.cloud.api.ChannelsCloudApiFactory;
import org.openhab.binding.supla.internal.cloud.api.CloudApiClientFactory;
import org.openhab.binding.supla.internal.cloud.api.IoDevicesCloudApi;
import org.openhab.binding.supla.internal.cloud.api.IoDevicesCloudApiFactory;
import org.osgi.framework.BundleContext;
import pl.grzeslowski.jsupla.api.generated.ApiClient;
import pl.grzeslowski.jsupla.api.generated.ApiException;
import pl.grzeslowski.jsupla.api.generated.model.Channel;
import pl.grzeslowski.jsupla.api.generated.model.ChannelExecuteActionRequest;
Expand Down Expand Up @@ -67,10 +64,7 @@ class CloudDeviceHandlerTest {
@Mock Bridge bridge;
@Mock ThingUID bridgeUid;
@Mock ThingRegistry thingRegistry;
@Mock BundleContext bundleContext;
@Mock CloudBridgeHandler bridgeHandler;
@Mock CloudApiClientFactory apiClientFactory;
@Mock ApiClient apiClient;
@Mock Configuration configuration;
@Mock ChannelsCloudApiFactory channelsCloudApiFactory;
@Mock IoDevicesCloudApiFactory ioDevicesCloudApiFactory;
Expand Down Expand Up @@ -111,7 +105,7 @@ void setUp() throws IllegalAccessException, ApiException {
setUpInternalInitialize();
}

void setUpChannels() throws ApiException {
void setUpChannels() {
allChannels = asList(lightChannel, rgbChannel, dimmerAndRgbChannel, rollerShutterChannel, gateChannel);
allChannels.forEach(channel -> given(channel.isHidden()).willReturn(false));
given(lightChannel.getFunction()).willReturn(new ChannelFunction().name(LIGHTSWITCH));
Expand Down

0 comments on commit ddfe8d7

Please sign in to comment.