Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 37CA1200BD1 for ; Mon, 28 Nov 2016 07:49:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 365C0160B0D; Mon, 28 Nov 2016 06:49:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7F5A7160B06 for ; Mon, 28 Nov 2016 07:49:02 +0100 (CET) Received: (qmail 48459 invoked by uid 500); 28 Nov 2016 06:49:01 -0000 Mailing-List: contact issues-help@eagle.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@eagle.incubator.apache.org Delivered-To: mailing list issues@eagle.incubator.apache.org Received: (qmail 48446 invoked by uid 99); 28 Nov 2016 06:49:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2016 06:49:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 27AB9C0D8D for ; Mon, 28 Nov 2016 06:49:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.018 X-Spam-Level: X-Spam-Status: No, score=-7.018 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9Rm56QYFVPcH for ; Mon, 28 Nov 2016 06:49:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 635F65FB70 for ; Mon, 28 Nov 2016 06:48:59 +0000 (UTC) Received: (qmail 48263 invoked by uid 99); 28 Nov 2016 06:48:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Nov 2016 06:48:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5FDD92C0086 for ; Mon, 28 Nov 2016 06:48:58 +0000 (UTC) Date: Mon, 28 Nov 2016 06:48:58 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@eagle.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (EAGLE-801) Add unit test for eagle-core module MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 28 Nov 2016 06:49:03 -0000 [ https://issues.apache.org/jira/browse/EAGLE-801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15701130#comment-15701130 ] ASF GitHub Bot commented on EAGLE-801: -------------------------------------- Github user chitin commented on a diff in the pull request: https://github.com/apache/incubator-eagle/pull/685#discussion_r89724886 --- Diff: eagle-core/eagle-app/eagle-app-base/src/test/java/org/apache/eagle/app/environment/TestExecutionRuntimeManager.java --- @@ -0,0 +1,38 @@ +/* + * 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.eagle.app.environment; + +import com.typesafe.config.Config; +import com.typesafe.config.ConfigFactory; +import junit.framework.Assert; +import org.apache.eagle.app.environment.impl.StormEnvironment; +import org.junit.Test; + +/** + * @Since 11/24/16. + */ +public class TestExecutionRuntimeManager { + + @Test + public void testGetRunTime() { + Config config = ConfigFactory.load(); + ExecutionRuntimeManager manager = ExecutionRuntimeManager.getInstance(); + ExecutionRuntime runtime = manager.getRuntime(StormEnvironment.class, config); + System.out.println(runtime.getClass().getName()); --- End diff -- OK > Add unit test for eagle-core module > ----------------------------------- > > Key: EAGLE-801 > URL: https://issues.apache.org/jira/browse/EAGLE-801 > Project: Eagle > Issue Type: Test > Reporter: Lingang Deng > Assignee: Lingang Deng > Priority: Minor > -- This message was sent by Atlassian JIRA (v6.3.4#6332)