55 |
56 | Welcome to Grails
57 |
58 |
59 | Congratulations, you have successfully started your first Grails application! At the moment
60 | this is the default page, feel free to modify it to either redirect to a controller or display
61 | whatever content you may choose. Below is a list of controllers that are currently deployed in
62 | this application, click on each to execute its default action:
63 |
64 |
65 |
66 |
Available Controllers:
67 |
68 |
69 | -
70 | ${c.fullName}
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
--------------------------------------------------------------------------------
/cdc/kafka-maxwell-connector/src/test/java/org/wushujames/copycat/file/FileStreamSourceConnectorTest.java:
--------------------------------------------------------------------------------
1 | ///**
2 | // * Licensed to the Apache Software Foundation (ASF) under one or more
3 | // * contributor license agreements. See the NOTICE file distributed with
4 | // * this work for additional information regarding copyright ownership.
5 | // * The ASF licenses this file to You under the Apache License, Version 2.0
6 | // * (the "License"); you may not use this file except in compliance with
7 | // * the License. You may obtain a copy of the License at
8 | // *
9 | // * http://www.apache.org/licenses/LICENSE-2.0
10 | // *
11 | // * Unless required by applicable law or agreed to in writing, software
12 | // * distributed under the License is distributed on an "AS IS" BASIS,
13 | // * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | // * See the License for the specific language governing permissions and
15 | // * limitations under the License.
16 | // **/
17 | //package org.wushujames.connect.mysql;
18 | //
19 | //import org.apache.kafka.copycat.connector.ConnectorContext;
20 | //import org.apache.kafka.copycat.errors.CopycatException;
21 | //import org.junit.Before;
22 | //import org.junit.Test;
23 | //import org.powermock.api.easymock.PowerMock;
24 | //
25 | //import java.util.List;
26 | //import java.util.Properties;
27 | //
28 | //import static org.junit.Assert.assertEquals;
29 | //import static org.junit.Assert.assertNull;
30 | //
31 | //public class FileStreamSourceConnectorTest {
32 | //
33 | // private static final String SINGLE_TOPIC = "test";
34 | // private static final String MULTIPLE_TOPICS = "test1,test2";
35 | // private static final String FILENAME = "/somefilename";
36 | //
37 | // private MySqlSourceConnector connector;
38 | // private ConnectorContext ctx;
39 | // private Properties sourceProperties;
40 | //
41 | // @Before
42 | // public void setup() {
43 | // connector = new MySqlSourceConnector();
44 | // ctx = PowerMock.createMock(ConnectorContext.class);
45 | // connector.initialize(ctx);
46 | //
47 | // sourceProperties = new Properties();
48 | // sourceProperties.setProperty(MySqlSourceConnector.TOPIC_CONFIG, SINGLE_TOPIC);
49 | // sourceProperties.setProperty(MySqlSourceConnector.FILE_CONFIG, FILENAME);
50 | // }
51 | //
52 | // @Test
53 | // public void testSourceTasks() {
54 | // PowerMock.replayAll();
55 | //
56 | // connector.start(sourceProperties);
57 | // List