<commit_before>package edu.ucar.unidata.rosetta.repository;

import edu.ucar.unidata.rosetta.domain.RosettaProperties;

import org.junit.Before;
import org.junit.Test;
import org.springframework.dao.DataRetrievalFailureException;

import static org.junit.Assert.*;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

public class PropertiesDaoTest {

    private JdbcPropertiesDao propertiesDao;
    private RosettaProperties rosettaProperties;

    @Before
    public void setUp() throws Exception {
        propertiesDao = mock(JdbcPropertiesDao.class);

        rosettaProperties = new RosettaProperties() ;
        rosettaProperties.setId(19993590);
        rosettaProperties.setUploadDir("/dev/null");
        rosettaProperties.setDownloadDir("/tmp");

        when(propertiesDao.lookupUploadDirectory()).thenReturn(rosettaProperties.getUploadDir());
        when(propertiesDao.lookupDownloadDirectory()).thenReturn(rosettaProperties.getDownloadDir());
    }

    @Test
    public void mockCreationTest() throws Exception {
        assertNotNull(propertiesDao);
        assertNotNull(rosettaProperties);
    }
<commit_msg>fixed unit test<commit_after>package edu.ucar.unidata.rosetta.repository;

import edu.ucar.unidata.rosetta.domain.RosettaProperties;

import org.junit.Before;
import org.junit.Test;
import org.springframework.dao.DataRetrievalFailureException;

import static org.junit.Assert.*;
import static org.mockito.Mockito.doThrow;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

public class PropertiesDaoTest {

    private JdbcPropertiesDao propertiesDao;
    private RosettaProperties rosettaProperties;

    @Before
    public void setUp() throws Exception {
        propertiesDao = mock(JdbcPropertiesDao.class);

        rosettaProperties = new RosettaProperties() ;
        rosettaProperties.setId(19993590);
        when(propertiesDao.lookupUploadDirectory()).thenReturn("/dev/null");
        when(propertiesDao.lookupDownloadDirectory()).thenReturn("/dev/null");
    }

    @Test
    public void mockCreationTest() throws Exception {
        assertNotNull(propertiesDao);
        assertNotNull(rosettaProperties);
    }

{'fraction_non_alphanumeric': 0.09369449378330373, 'fraction_numerical': 0.007104795737122558, 'mean_word_length': 4.428915662650603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4825604', 'n_tokens_mistral': 642, 'n_tokens_neox': 638, 'n_words': 110}