Skip to content

Commit

Permalink
Add signals to things registry tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Yufei Cai <yufei.cai@bosch.io>
  • Loading branch information
yufei-cai committed Aug 22, 2022
1 parent 909ebea commit df2d88c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
import org.eclipse.ditto.things.api.commands.sudo.SudoRetrieveThing;
import org.eclipse.ditto.things.model.signals.commands.modify.ModifyFeatureProperty;
import org.eclipse.ditto.things.model.signals.commands.query.RetrieveFeature;
import org.eclipse.ditto.thingsearch.api.commands.sudo.SudoCountThings;
import org.eclipse.ditto.thingsearch.model.signals.commands.query.QueryThings;
import org.eclipse.ditto.thingsearch.model.signals.commands.subscription.CreateSubscription;

public final class ThingsServiceGlobalCommandRegistryTest extends GlobalCommandRegistryTestCases {

Expand All @@ -51,7 +54,10 @@ public ThingsServiceGlobalCommandRegistryTest() {
RetrieveHealth.class,
PurgeEntities.class,
ModifySplitBrainResolver.class,
PublishSignal.class
PublishSignal.class,
CreateSubscription.class,
QueryThings.class,
SudoCountThings.class
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
package org.eclipse.ditto.things.service.starter;

import org.eclipse.ditto.base.api.commands.sudo.SudoQueryCommandResponse;
import org.eclipse.ditto.base.api.common.RetrieveConfigResponse;
import org.eclipse.ditto.base.api.common.purge.PurgeEntitiesResponse;
import org.eclipse.ditto.base.api.devops.signals.commands.RetrieveLoggerConfigResponse;
Expand All @@ -31,6 +32,10 @@
import org.eclipse.ditto.things.model.signals.commands.ThingErrorResponse;
import org.eclipse.ditto.things.model.signals.commands.modify.ModifyFeaturePropertyResponse;
import org.eclipse.ditto.things.model.signals.commands.query.RetrieveFeatureResponse;
import org.eclipse.ditto.thingsearch.api.commands.sudo.SudoRetrieveNamespaceReportResponse;
import org.eclipse.ditto.thingsearch.model.signals.commands.SearchErrorResponse;
import org.eclipse.ditto.thingsearch.model.signals.commands.ThingSearchCommandResponse;
import org.eclipse.ditto.thingsearch.model.signals.commands.query.QueryThingsResponse;

public final class ThingsServiceGlobalCommandResponseRegistryTest extends GlobalCommandResponseRegistryTestCases {

Expand All @@ -53,7 +58,10 @@ public ThingsServiceGlobalCommandResponseRegistryTest() {
RetrieveHealthResponse.class,
PurgeEntitiesResponse.class,
ModifySplitBrainResolverResponse.class,
Acknowledgement.class
Acknowledgement.class,
QueryThingsResponse.class,
SearchErrorResponse.class,
SudoRetrieveNamespaceReportResponse.class
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
import org.eclipse.ditto.policies.model.signals.commands.exceptions.PolicyConflictException;
import org.eclipse.ditto.things.model.ThingIdInvalidException;
import org.eclipse.ditto.things.model.signals.commands.exceptions.AttributePointerInvalidException;
import org.eclipse.ditto.thingsearch.api.QueryTimeExceededException;
import org.eclipse.ditto.thingsearch.model.signals.commands.exceptions.InvalidOptionException;
import org.eclipse.ditto.wot.model.WotThingModelInvalidException;

public final class ThingsServiceGlobalErrorRegistryTest extends GlobalErrorRegistryTestCases {
Expand All @@ -56,7 +58,11 @@ public ThingsServiceGlobalErrorRegistryTest() {
AcknowledgementCorrelationIdMissingException.class,
PlaceholderFunctionUnknownException.class,
PathUnknownException.class,
WotThingModelInvalidException.class);
WotThingModelInvalidException.class,
InvalidOptionException.class,
QueryTimeExceededException.class
);

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import org.eclipse.ditto.internal.utils.persistentactors.EmptyEvent;
import org.eclipse.ditto.internal.utils.test.GlobalEventRegistryTestCases;
import org.eclipse.ditto.things.model.signals.events.FeatureDeleted;
import org.eclipse.ditto.thingsearch.api.events.ThingsOutOfSync;
import org.eclipse.ditto.thingsearch.model.signals.events.SubscriptionCreated;

public final class ThingsServiceGlobalEventRegistryTest extends GlobalEventRegistryTestCases {

Expand All @@ -25,7 +27,9 @@ public ThingsServiceGlobalEventRegistryTest() {
FeatureDeleted.class,
ThingSnapshotTaken.class,
EmptyEvent.class,
PolicyModified.class
PolicyModified.class,
SubscriptionCreated.class,
ThingsOutOfSync.class
);
}

Expand Down

0 comments on commit df2d88c

Please sign in to comment.