You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2022/08/08 04:02:06 UTC
[incubator-linkis] branch dev-1.2.1 updated: Add DownloadDaoTest (#2622)
This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev-1.2.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.2.1 by this push:
new 4b53a478e Add DownloadDaoTest (#2622)
4b53a478e is described below
commit 4b53a478eb641a2a78b5bfabe57d246e4ab274d4
Author: 成彬彬 <10...@users.noreply.github.com>
AuthorDate: Mon Aug 8 12:02:01 2022 +0800
Add DownloadDaoTest (#2622)
---
.../org/apache/linkis/bml/dao/DownloadDaoTest.java | 47 ++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/linkis-public-enhancements/linkis-bml/linkis-bml-server/src/test/java/org/apache/linkis/bml/dao/DownloadDaoTest.java b/linkis-public-enhancements/linkis-bml/linkis-bml-server/src/test/java/org/apache/linkis/bml/dao/DownloadDaoTest.java
new file mode 100644
index 000000000..f6cae5665
--- /dev/null
+++ b/linkis-public-enhancements/linkis-bml/linkis-bml-server/src/test/java/org/apache/linkis/bml/dao/DownloadDaoTest.java
@@ -0,0 +1,47 @@
+/*
+ * 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.linkis.bml.dao;
+
+import org.apache.linkis.bml.entity.DownloadModel;
+
+import org.springframework.beans.factory.annotation.Autowired;
+
+import org.junit.jupiter.api.Test;
+
+import java.util.Date;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+class DownloadDaoTest extends BaseDaoTest {
+
+ @Autowired DownloadDao downloadDao;
+
+ @Test
+ void insertDownloadModel() {
+ DownloadModel downloadModel = new DownloadModel();
+ downloadModel.setDownloader("test");
+ downloadModel.setClientIp("192.143.253");
+ downloadModel.setEndTime(new Date());
+ downloadModel.setId(12);
+ downloadModel.setState(1);
+ downloadModel.setStartTime(new Date());
+ downloadModel.setVersion("1.2");
+ downloadModel.setResourceId("32");
+ downloadDao.insertDownloadModel(downloadModel);
+ }
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org