Skip to content

Commit

Permalink
test case fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
car031 committed Dec 4, 2023
1 parent ccb3ac4 commit 799744a
Show file tree
Hide file tree
Showing 2 changed files with 241 additions and 216 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import java.sql.SQLException;

import org.junit.Before;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.logicaldoc.core.store.Storer;
import com.logicaldoc.util.Context;
Expand All @@ -24,6 +26,8 @@
*/
public abstract class AbstractCoreTestCase extends AbstractTestCase {

protected static Logger log = LoggerFactory.getLogger(AbstractCoreTestCase.class);

@Before
@Override
public void setUp() throws FileNotFoundException, IOException, SQLException {
Expand All @@ -46,7 +50,11 @@ private void prepareStore() throws IOException {

// Store the file of document 1
FileUtil.copyResource("/Digital_Day.pdf", new File(storePath + "/1/doc/1.0"));
FileUtil.copyResource("/Digital_Day.pdf", new File(storePath + "/1/doc/1.0-conversion.pdf"));
try {
FileUtil.copyResource("/Digital_Day.pdf", new File(storePath + "/1/doc/1.0-conversion.pdf"));
} catch (Exception e) {
log.warn(e.getMessage(), e);
}

// Store the file of document 3
FileUtil.copyResource("/small.pdf", new File(storePath + "/3/doc/1.3"));
Expand Down
Loading

0 comments on commit 799744a

Please sign in to comment.