Skip to content
Snippets Groups Projects
Commit bc110c39 authored by Karin Pettersen's avatar Karin Pettersen
Browse files

Added DB tests

parent a9097349
No related branches found
No related tags found
No related merge requests found
package com.application.DB;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import static org.junit.jupiter.api.Assertions.*;
class DBTest {
DBTest(){
Constants.TREE_SPECIES = "Gran";
Constants.DIMENSIONS = "47x200";
Constants.SAWSET = "2ex";
Constants.MOISTURE_GOAL = "16";
Constants.CURRENT_DATE = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(LocalDateTime.now());
Constants.START_TIME = Constants.CURRENT_DATE;
Constants.STOP_TIME = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss").format(LocalDateTime.now());
}
@Test
void setInputParameters() throws Exception {
Assertions.assertEquals(2, DB.setInputParameters().size());
}
@Test
void getCurrentDrying() throws Exception {
Assertions.assertEquals(0, DB.getCurrentDrying().size());
}
}
\ No newline at end of file
File added
File added
File added
File added
File added
No preview for this file type
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment