1 package org.kuali.common.util.service;
2
3 import java.io.File;
4
5 import org.junit.Test;
6
7 public class DefaultMySqlDumpServiceTest {
8
9 @Test
10 public void test() {
11 try {
12
13 MySqlDumpContext context = new MySqlDumpContext();
14
15
16
17 context.setIgnorers(MySqlDumpUtils.getDefaultIgnorers());
18 context.setUsername("JDBCTEST");
19 context.setPassword("JDBCTEST");
20 context.setHostname("localhost");
21 context.setDatabase("JDBCTEST");
22 context.setOutputFile(new File("/tmp/mysqldump/jtest.sql"));
23 MySqlDumpService service = new DefaultMySqlDumpService();
24 service.dump(context);
25 } catch (Exception e) {
26 e.printStackTrace();
27 }
28
29 }
30
31 }