Skip to content

Commit

Permalink
[PPANTT-99] chore: Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
svariant committed Aug 30, 2024
1 parent 1377aa1 commit 26f0137
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.azure.spring.data.cosmos.core.CosmosTemplate;
import it.pagopa.afm.marketplacebe.entity.Bundle;
import it.pagopa.afm.marketplacebe.entity.BundleType;
import org.apache.tomcat.jni.Time;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
Expand Down Expand Up @@ -38,7 +39,7 @@ void getBundlesByNameAndTypeValidBundles() {
// Precondition
when(cosmosTemplate.runQuery(any(SqlQuerySpec.class), any(), any())).thenReturn(bundleList);

List<Bundle> bundles = cosmosRepository.getBundlesByNameAndType(null, "mock name", List.of(BundleType.PRIVATE, BundleType.PUBLIC, BundleType.GLOBAL), Sort.Direction.ASC, null,null, null,null,null,null,0, 50);
List<Bundle> bundles = cosmosRepository.getBundlesByNameAndType(null, "mock name", List.of(BundleType.PRIVATE, BundleType.PUBLIC, BundleType.GLOBAL), Sort.Direction.ASC, 0L,0L, LocalDate.now(),LocalDate.now(),LocalDate.now(),LocalDate.now(),0, 50);

assertFalse(bundles.isEmpty());
}
Expand Down

0 comments on commit 26f0137

Please sign in to comment.