Skip to content
Browse files

#1:

1) Added missing test dependencies
2) Added some missing license headers.
  • Loading branch information...
1 parent 6ebf64c commit 21c0d97be504695f70979e3d0f746cf6b185be04 Karthik Ranganathan committed Dec 23, 2012
View
7 build.gradle
@@ -11,6 +11,7 @@ allprojects {
repositories { mavenCentral() }
}
+
apply from: file('gradle/convention.gradle')
apply from: file('gradle/maven.gradle')
apply from: file('gradle/check.gradle')
@@ -20,12 +21,18 @@ apply from: file('gradle/release.gradle')
//apply plugin: 'war'
//apply plugin: 'jetty'
+test {
+ include 'com/netflix/blitz4j/**'
+}
+
dependencies {
compile 'com.netflix.servo:servo-core:0.4.26'
compile 'com.netflix.archaius:archaius-core:0.4.1'
compile 'org.slf4j:slf4j-api:1.6.4'
compile 'log4j:log4j:1.2.17'
compile 'org.slf4j:slf4j-api:1.6.4'
compile 'commons-collections:commons-collections:3.2.1'
+ testCompile 'junit:junit:4.10'
+ testCompile 'org.slf4j:slf4j-log4j12:1.6.1'
}
View
21 src/main/java/com/netflix/blitz4j/BlitzConfig.java
@@ -1,5 +1,26 @@
+/*
+ * Copyright 2012 Netflix, 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
+ *
+ * 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 com.netflix.blitz4j;
+/**
+ * The configuration contract for blitz4j.
+ *
+ * @author Karthik Ranganathan
+ */
+
public interface BlitzConfig {
/**
View
17 ...java/com/netflix/blitz4j/TestBlitz4j.java → ...java/com/netflix/blitz4j/TestBlitz4j.java
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2012 Netflix, 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
+ *
+ * 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 com.netflix.blitz4j;
import java.util.Collection;
@@ -156,6 +172,7 @@ public void testReconfiguration() throws Exception {
Thread.sleep(4000);
Assert.assertFalse(slfLogger.isDebugEnabled());
+ LoggingConfiguration.getInstance().stop();
}
private String getMonitoringData(String metricName) {

0 comments on commit 21c0d97

Please sign in to comment.
Something went wrong with that request. Please try again.