You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tr...@apache.org on 2018/02/21 22:56:28 UTC

[09/13] flink git commit: [hotfix] Move JarListInfoTest to correct package

[hotfix] Move JarListInfoTest to correct package


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/93a45794
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/93a45794
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/93a45794

Branch: refs/heads/master
Commit: 93a457945f74e96697d9911de575072185098e32
Parents: 27eac41
Author: gyao <ga...@data-artisans.com>
Authored: Mon Feb 19 18:31:40 2018 +0100
Committer: Till Rohrmann <tr...@apache.org>
Committed: Wed Feb 21 22:49:07 2018 +0100

----------------------------------------------------------------------
 .../webmonitor/handlers/JarListInfoTest.java    | 51 +++++++++++++++++++
 .../webmonitor/handlers/ng/JarListInfoTest.java | 52 --------------------
 2 files changed, 51 insertions(+), 52 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/93a45794/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarListInfoTest.java
----------------------------------------------------------------------
diff --git a/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarListInfoTest.java b/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarListInfoTest.java
new file mode 100644
index 0000000..7f5f50a
--- /dev/null
+++ b/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarListInfoTest.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.runtime.webmonitor.handlers;
+
+import org.apache.flink.runtime.rest.messages.RestResponseMarshallingTestBase;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Tests that the {@link JarListInfo} can be marshalled and unmarshalled.
+ */
+public class JarListInfoTest extends RestResponseMarshallingTestBase<JarListInfo> {
+	@Override
+	protected Class<JarListInfo> getTestResponseClass() {
+		return JarListInfo.class;
+	}
+
+	@Override
+	protected JarListInfo getTestResponseInstance() throws Exception {
+		List<JarListInfo.JarEntryInfo> jarEntryList1 = new ArrayList<>();
+		jarEntryList1.add(new JarListInfo.JarEntryInfo("name1", "desc1"));
+		jarEntryList1.add(new JarListInfo.JarEntryInfo("name2", "desc2"));
+
+		List<JarListInfo.JarEntryInfo> jarEntryList2 = new ArrayList<>();
+		jarEntryList2.add(new JarListInfo.JarEntryInfo("name3", "desc3"));
+		jarEntryList2.add(new JarListInfo.JarEntryInfo("name4", "desc4"));
+
+		List<JarListInfo.JarFileInfo> jarFileList = new ArrayList<>();
+		jarFileList.add(new JarListInfo.JarFileInfo("fileId1", "fileName1", System.currentTimeMillis(), jarEntryList1));
+		jarFileList.add(new JarListInfo.JarFileInfo("fileId2", "fileName2", System.currentTimeMillis(), jarEntryList2));
+
+		return new JarListInfo("local", jarFileList);
+	}
+}

http://git-wip-us.apache.org/repos/asf/flink/blob/93a45794/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/ng/JarListInfoTest.java
----------------------------------------------------------------------
diff --git a/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/ng/JarListInfoTest.java b/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/ng/JarListInfoTest.java
deleted file mode 100644
index a32610f..0000000
--- a/flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/ng/JarListInfoTest.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.flink.runtime.webmonitor.handlers.ng;
-
-import org.apache.flink.runtime.rest.messages.RestResponseMarshallingTestBase;
-import org.apache.flink.runtime.webmonitor.handlers.JarListInfo;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Tests that the {@link JarListInfo} can be marshalled and unmarshalled.
- */
-public class JarListInfoTest extends RestResponseMarshallingTestBase<JarListInfo> {
-	@Override
-	protected Class<JarListInfo> getTestResponseClass() {
-		return JarListInfo.class;
-	}
-
-	@Override
-	protected JarListInfo getTestResponseInstance() throws Exception {
-		List<JarListInfo.JarEntryInfo> jarEntryList1 = new ArrayList<>();
-		jarEntryList1.add(new JarListInfo.JarEntryInfo("name1", "desc1"));
-		jarEntryList1.add(new JarListInfo.JarEntryInfo("name2", "desc2"));
-
-		List<JarListInfo.JarEntryInfo> jarEntryList2 = new ArrayList<>();
-		jarEntryList2.add(new JarListInfo.JarEntryInfo("name3", "desc3"));
-		jarEntryList2.add(new JarListInfo.JarEntryInfo("name4", "desc4"));
-
-		List<JarListInfo.JarFileInfo> jarFileList = new ArrayList<>();
-		jarFileList.add(new JarListInfo.JarFileInfo("fileId1", "fileName1", System.currentTimeMillis(), jarEntryList1));
-		jarFileList.add(new JarListInfo.JarFileInfo("fileId2", "fileName2", System.currentTimeMillis(), jarEntryList2));
-
-		return new JarListInfo("local", jarFileList);
-	}
-}