Skip to content
This repository has been archived by the owner on Feb 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #6 from jpwhitemn/master
Browse files Browse the repository at this point in the history
fixed unit test broken by core-test enum change for google stlyes.  A…
  • Loading branch information
trcox authored Aug 19, 2017
2 parents 7254a6f + 4f8c9a4 commit 63c8250
Show file tree
Hide file tree
Showing 10 changed files with 928 additions and 967 deletions.
27 changes: 13 additions & 14 deletions src/main/java/org/edgexfoundry/Application.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
/*******************************************************************************
* Copyright 2016-2017 Dell Inc.
*
* Licensed 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
* Licensed 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.
* 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.
*
* @microservice: core-command
* @microservice: core-command
* @author: Jim White, Dell
* @version: 1.0.0
*******************************************************************************/

package org.edgexfoundry;

import org.springframework.boot.SpringApplication;
Expand All @@ -30,10 +29,10 @@
@EnableDiscoveryClient
public class Application {

public static void main(String[] args) {
ConfigurableApplicationContext ctx = SpringApplication.run(Application.class, args);
String welcomeMsg = ctx.getEnvironment().getProperty("app.open.msg");
System.out.println(welcomeMsg);
}
public static void main(String[] args) {
ConfigurableApplicationContext ctx = SpringApplication.run(Application.class, args);
String welcomeMsg = ctx.getEnvironment().getProperty("app.open.msg");
System.out.println(welcomeMsg);
}

}
34 changes: 16 additions & 18 deletions src/main/java/org/edgexfoundry/HeartBeat.java
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
/*******************************************************************************
* Copyright 2016-2017 Dell Inc.
*
* Licensed 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
* Licensed 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.
* 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.
*
* @microservice: core-command
* @microservice: core-command
* @author: Jim White, Dell
* @version: 1.0.0
*******************************************************************************/

package org.edgexfoundry;

import org.springframework.beans.factory.annotation.Value;
Expand All @@ -28,15 +27,14 @@
@Component
public class HeartBeat {

// private static final Logger logger = Logger.getLogger(HeartBeat.class);
private final static org.edgexfoundry.support.logging.client.EdgeXLogger logger = org.edgexfoundry.support.logging.client.EdgeXLoggerFactory
.getEdgeXLogger(HeartBeat.class);
private static final org.edgexfoundry.support.logging.client.EdgeXLogger logger =
org.edgexfoundry.support.logging.client.EdgeXLoggerFactory.getEdgeXLogger(HeartBeat.class);

@Value("${heart.beat.msg}")
private String heartBeatMsg;
@Value("${heart.beat.msg}")
private String heartBeatMsg;

@Scheduled(fixedRateString = "${heart.beat.time}")
public void pulse() {
logger.info(heartBeatMsg);
}
@Scheduled(fixedRateString = "${heart.beat.time}")
public void pulse() {
logger.info(heartBeatMsg);
}
}
Loading

0 comments on commit 63c8250

Please # to comment.