Commit 7aee70d8 authored by Miroslav Rouča's avatar Miroslav Rouča
Browse files

Added test for ElectricityPrice

parent d4633a9d
Loading
Loading
Loading
Loading
Loading
+62 −0
Original line number Diff line number Diff line
package cz.muni.fi.pa165.core.metrics;

import cz.muni.fi.pa165.core.device.DeviceRepository;
import cz.muni.fi.pa165.core.device.DeviceService;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;

import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.MockitoAnnotations.openMocks;

class MetricsServiceTest {


	@Test
	void create() {
	}

	@Test
	void findAllPageable() {
	}

	@Test
	void findAll() {
	}

	@Test
	void findAllPageableInt() {
	}

	@Test
	void findById() {
	}

	@Test
	void deleteAll() {
	}

	@Test
	void deleteAllById() {
	}

	@Test
	void deleteById() {
	}

	@Test
	void update() {
	}

	@Test
	void hardDeleteAll() {
	}

	@Test
	void getRepository() {
	}


}
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
package cz.muni.fi.pa165.microservice4;
package cz.muni.fi.pa165.electricityTarifMicroservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+1 −1
Original line number Diff line number Diff line
package cz.muni.fi.pa165.microservice4.electricityprices;
package cz.muni.fi.pa165.electricityTarifMicroservice.electricityprices;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
+3 −3
Original line number Diff line number Diff line
package cz.muni.fi.pa165.microservice4.electricityprices;
package cz.muni.fi.pa165.electricityTarifMicroservice.electricityprices;

import cz.muni.fi.pa165.microservice4.electricityprices.dtos.ElectricityPriceGetFullDto;
import cz.muni.fi.pa165.microservice4.electricityprices.dtos.ElectricityPricePostDto;
import cz.muni.fi.pa165.electricityTarifMicroservice.electricityprices.dtos.ElectricityPriceGetFullDto;
import cz.muni.fi.pa165.electricityTarifMicroservice.electricityprices.dtos.ElectricityPricePostDto;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
+3 −4
Original line number Diff line number Diff line
package cz.muni.fi.pa165.microservice4.electricityprices;
package cz.muni.fi.pa165.electricityTarifMicroservice.electricityprices;

import cz.muni.fi.pa165.microservice4.electricityprices.dtos.ElectricityPriceGetFullDto;
import cz.muni.fi.pa165.microservice4.electricityprices.dtos.ElectricityPricePostDto;
import cz.muni.fi.pa165.electricityTarifMicroservice.electricityprices.dtos.ElectricityPriceGetFullDto;
import cz.muni.fi.pa165.electricityTarifMicroservice.electricityprices.dtos.ElectricityPricePostDto;
import org.mapstruct.BeforeMapping;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;

Loading