Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
metacosm committed Nov 29, 2023
1 parent cb740ac commit a00a384
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.Map;

public class SensorMetadata {
public record ComponentMetadata(String name, int index, String description, boolean isAttributed, String unit){};
public record ComponentMetadata(String name, int index, String description, boolean isAttributed, String unit){}

@JsonCreator
public SensorMetadata(Map<String, ComponentMetadata> components, String documentation) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import java.util.Set;

import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.junit.jupiter.api.Assertions.*;

@QuarkusTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package io.github.metacosm.power.sensors.macos.powermetrics;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

import io.github.metacosm.power.SensorMetadata;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.io.InputStream;

import static org.junit.jupiter.api.Assertions.assertEquals;

class MacOSPowermetricsSensorTest {

@Test
Expand Down

0 comments on commit a00a384

Please sign in to comment.