junit.framework.Assertorg.junit.Assert



Project Graylog2/graylog2-server in file ....src.test.java.org.graylog2.ConfigurationTest.java (2013-08-17)
@@ -1,21 +1,19 @@
 package org.graylog2;
 
-import java.io.File;
-import java.io.IOException;
-import java.util.Map;
-
-import junit.framework.Assert;
-
-import org.bson.types.ObjectId;
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-
 import com.github.joschi.jadconfig.JadConfig;
 import com.github.joschi.jadconfig.RepositoryException;
 import com.github.joschi.jadconfig.ValidationException;
 import com.github.joschi.jadconfig.repositories.InMemoryRepository;
 import com.google.common.collect.Maps;
+import org.junit.Assert;
+import org.bson.types.ObjectId;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.Map;
 
 /**
  * Unit tests for {@link Configuration} class
@@ -52,6 +50,7 @@ public class ConfigurationTest {
         validProperties.put("mongodb_port", "27017");
         validProperties.put("use_gelf", "true");
         validProperties.put("gelf_listen_port", "12201");
+        validProperties.put("root_password_sha1", "d033e22ae348aeb5660fc2140aec35850c4da997"); // sha1 of admin
 
         // Additional numerical properties
         validProperties.put("mongodb_max_connections", "100");
Project JetBrains/kotlin in file ...jetbrains.k2js.test.config.JsUnitTestReporter.java (2014-08-29)
@@ -17,11 +17,11 @@
 package org.jetbrains.k2js.test.config;
 
 import com.intellij.util.containers.ContainerUtil;
-import junit.framework.Assert;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
 import org.jetbrains.annotations.NotNull;
 import org.jetbrains.annotations.Nullable;
+import org.junit.Assert;
 
 import java.util.ArrayList;
 import java.util.Collection;
@@ -118,7 +118,6 @@ public class JsUnitTestReporter {
                         Assert.fail(sb.toString());
                     }
                     eraseTestInfo(getName());
-                    Assert.assertTrue(result);
                 }
             });
         }
Project alibaba/druid in file ...ba.druid.bvt.pool.TestOnBorrowFileAndNameTest.java (2013-05-18)
@@ -5,9 +5,10 @@ import java.sql.PreparedStatement;
 import java.sql.ResultSet;
 import java.util.Iterator;
 
-import junit.framework.Assert;
 import junit.framework.TestCase;
 
+import org.junit.Assert;
+
 import com.alibaba.druid.pool.DruidDataSource;
 import com.alibaba.druid.stat.DruidDataSourceStatManager;
 import com.alibaba.druid.stat.JdbcSqlStat;
@@ -24,6 +25,7 @@ public class TestOnBorrowFileAndNameTest extends TestCase {
         dataSource.setName("com.alibaba.dragoon.monitor");
         dataSource.setMinIdle(0);
         dataSource.setPoolPreparedStatements(false);
+        dataSource.setTestOnBorrow(true);
         dataSource.setValidationQuery("SELECT 1");
         dataSource.setFilters("stat");
 
Project alibaba/druid in file ...libaba.druid.bvt.proxy.filter.StatFilterTest3.java (2013-06-08)
@@ -1,11 +1,13 @@
 package com.alibaba.druid.bvt.proxy.filter;
 
-import junit.framework.Assert;
 import junit.framework.TestCase;
 
+import org.junit.Assert;
+
 import com.alibaba.druid.filter.stat.StatFilter;
 
 public class StatFilterTest3 extends TestCase {
+    @SuppressWarnings("deprecation")
     public void test_dbType() throws Exception {
         StatFilter filter = new StatFilter();
         
Project alibaba/fastjson in file ...com.alibaba.json.test.TestWriteSlashAsSpecial.java (2013-06-23)
@@ -1,11 +1,13 @@
 package com.alibaba.json.test;
 
-import junit.framework.Assert;
 import junit.framework.TestCase;
 
+import org.junit.Assert;
+
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.serializer.SerializerFeature;
 
+@SuppressWarnings("deprecation")
 public class TestWriteSlashAsSpecial extends TestCase {
 
     private int defaultValue = JSON.DEFAULT_GENERATE_FEATURE;