2 * In Samsung Ukraine R&D Center (SRK under a contract between)
3 * LLC "Samsung Electronics Co", Ltd (Seoul, Republic of Korea)
4 * Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
6 package com.samsung.samserver.web.rest.service.vm;
8 import org.junit.Assert;
9 import org.junit.Before;
10 import org.junit.Test;
11 import org.mockito.InjectMocks;
12 import org.mockito.Mock;
13 import org.mockito.MockitoAnnotations;
15 import java.util.Arrays;
16 import java.util.List;
18 import static org.mockito.Mockito.*;
21 * Test class for the UIDashboardLog.
25 public class UIDashboardLogTest {
27 List<String> additional;
29 UIDashboardLog uIDashboardLog;
33 MockitoAnnotations.initMocks(this);
37 public void testSetLevel() throws Exception {
38 uIDashboardLog.setLevel("level");
42 public void testSetMessage() throws Exception {
43 uIDashboardLog.setMessage("message");
47 public void testSetTimestamp() throws Exception {
48 uIDashboardLog.setTimestamp("timestamp");
52 public void testSetAdditional() throws Exception {
53 uIDashboardLog.setAdditional(Arrays.<String>asList("String"));
57 public void testToString() throws Exception {
58 String result = uIDashboardLog.toString();
59 Assert.assertEquals("UIDashboardLog(level=null, message=null, timestamp=null, additional=additional)", result);