swaggerblueprint

Blueprint project for spring boot application with OpenApi Swagger docs
git clone git://git.wimdupont.com/swaggerblueprint.git
Log | Files | Refs | README | LICENSE

BlueprintServiceTest.java (697B)


      1 package com.wimdupont.swagger.blueprint.service;
      2 
      3 import com.wimdupont.swagger.blueprint.controller.dto.BlueprintDto;
      4 import org.junit.jupiter.api.BeforeEach;
      5 import org.junit.jupiter.api.Test;
      6 
      7 import java.util.Set;
      8 
      9 import static org.junit.jupiter.api.Assertions.assertFalse;
     10 import static org.junit.jupiter.api.Assertions.assertNotNull;
     11 
     12 class BlueprintServiceTest {
     13 
     14     private BlueprintService blueprintService;
     15 
     16     @BeforeEach
     17     void setup() {
     18         blueprintService = new BlueprintService();
     19     }
     20 
     21     @Test
     22     void getBlueprints() {
     23         Set<BlueprintDto> result = blueprintService.getBlueprints();
     24         assertNotNull(result);
     25         assertFalse(result.isEmpty());
     26     }
     27 
     28 }