// Path: connote-service/src/main/java/de/codecentric/resilient/connote/entity/Connote.java
// @Entity
// public class Connote {
// 
//     @Id
//     private Long connote;
// 
//     @Column(name = "created", nullable = false)
//     private LocalDateTime created = LocalDateTime.now();
// 
//     public Connote(Long connote) {
// 
//         this.connote = connote;
//     }
// 
//     public Connote() {
//     }
// 
//     public Long getConnote() {
//         return connote;
//     }
// 
//     public void setConnote(Long connote) {
//         this.connote = connote;
//     }
// 
//     public LocalDateTime getCreated() {
//         return created;
//     }
// 
//     public void setCreated(LocalDateTime created) {
//         this.created = created;
//     }
// 
// }
// 
// Path: connote-service/src/main/java/de/codecentric/resilient/connote/repository/ConnoteRepository.java
// public interface ConnoteRepository extends CrudRepository<Connote, Long> {
// 
//     @Override
//     Connote save(Connote connote);
// }
// 
// Path: service-library/src/main/java/de/codecentric/resilient/dto/ConnoteDTO.java
// @JsonInclude(JsonInclude.Include.NON_NULL)
// public class ConnoteDTO extends FallbackAbstractDTO {
// 
//     @JsonProperty(required = true)
//     private Long connote;
// 
//     public void setConnote(Long connote) {
//         this.connote = connote;
//     }
// 
//     public Long getConnote() {
//         return connote;
//     }
// 
// }
// 
// Path: connote-service/src/main/java/de/codecentric/resilient/connote/utils/RandomConnoteGenerator.java
// @Service
// @RefreshScope
// public class RandomConnoteGenerator {
// 
//     // Connote start range
//     private DynamicLongProperty startRange =
//             DynamicPropertyFactory.getInstance().getLongProperty("connote.range.start", 1000000);
// 
//     // Connote end range
//     private DynamicLongProperty endRange = DynamicPropertyFactory.getInstance().getLongProperty("connote.range.end", 5000000);
// 
//     @Value("${connote.range.start}")
//     private int connoteStart;
// 
//     @Value("${connote.range.end}")
//     private int connoteEnd;
// 
//     public long randomNumber() {
//         startRange.get();
//         endRange.get();
//         return RandomUtils.nextLong(connoteStart, connoteEnd);
// 
//         //return RandomUtils.nextLong(startRange.get(), endRange.get());
//     }
// }


import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.*;
import de.codecentric.resilient.connote.entity.Connote;
import de.codecentric.resilient.connote.repository.ConnoteRepository;
import org.joda.time.LocalDateTime;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import de.codecentric.resilient.dto.ConnoteDTO;
import de.codecentric.resilient.connote.utils.RandomConnoteGenerator;
package de.codecentric.resilient.connote.service;



/**
 * @author Benjamin Wilms (xd98870)
 */
@RunWith(MockitoJUnitRunner.class)
public class ConnoteServiceTest {
    @Mock
    private ConnoteRepository connoteRepositoryMock;

    @Mock
// Path: connote-service/src/main/java/de/codecentric/resilient/connote/entity/Connote.java
// @Entity
// public class Connote {
// 
//     @Id
//     private Long connote;
// 
//     @Column(name = "created", nullable = false)
//     private LocalDateTime created = LocalDateTime.now();
// 
//     public Connote(Long connote) {
// 
//         this.connote = connote;
//     }
// 
//     public Connote() {
//     }
// 
//     public Long getConnote() {
//         return connote;
//     }
// 
//     public void setConnote(Long connote) {
//         this.connote = connote;
//     }
// 
//     public LocalDateTime getCreated() {
//         return created;
//     }
// 
//     public void setCreated(LocalDateTime created) {
//         this.created = created;
//     }
// 
// }
// 
// Path: connote-service/src/main/java/de/codecentric/resilient/connote/repository/ConnoteRepository.java
// public interface ConnoteRepository extends CrudRepository<Connote, Long> {
// 
//     @Override
//     Connote save(Connote connote);
// }
// 
// Path: service-library/src/main/java/de/codecentric/resilient/dto/ConnoteDTO.java
// @JsonInclude(JsonInclude.Include.NON_NULL)
// public class ConnoteDTO extends FallbackAbstractDTO {
// 
//     @JsonProperty(required = true)
//     private Long connote;
// 
//     public void setConnote(Long connote) {
//         this.connote = connote;
//     }
// 
//     public Long getConnote() {
//         return connote;
//     }
// 
// }
// 
// Path: connote-service/src/main/java/de/codecentric/resilient/connote/utils/RandomConnoteGenerator.java
// @Service
// @RefreshScope
// public class RandomConnoteGenerator {
// 
//     // Connote start range
//     private DynamicLongProperty startRange =
//             DynamicPropertyFactory.getInstance().getLongProperty("connote.range.start", 1000000);
// 
//     // Connote end range
//     private DynamicLongProperty endRange = DynamicPropertyFactory.getInstance().getLongProperty("connote.range.end", 5000000);
// 
//     @Value("${connote.range.start}")
//     private int connoteStart;
// 
//     @Value("${connote.range.end}")
//     private int connoteEnd;
// 
//     public long randomNumber() {
//         startRange.get();
//         endRange.get();
//         return RandomUtils.nextLong(connoteStart, connoteEnd);
// 
//         //return RandomUtils.nextLong(startRange.get(), endRange.get());
//     }
// }


// Path: connote-service/src/test/java/de/codecentric/resilient/connote/service/ConnoteServiceTest.java
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.*;
import de.codecentric.resilient.connote.entity.Connote;
import de.codecentric.resilient.connote.repository.ConnoteRepository;
import org.joda.time.LocalDateTime;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import de.codecentric.resilient.dto.ConnoteDTO;
import de.codecentric.resilient.connote.utils.RandomConnoteGenerator;

package de.codecentric.resilient.connote.service;



/**
 * @author Benjamin Wilms (xd98870)
 */
@RunWith(MockitoJUnitRunner.class)
public class ConnoteServiceTest {
    @Mock
    private ConnoteRepository connoteRepositoryMock;

    @Mock
    private RandomConnoteGenerator randomConnoteGeneratorMock;