### Question:
WbDbParamsRead { public static Properties getDbParams() throws IOException { Properties prop = new Properties(); prop.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("weibo_db.properties")); return prop; }  static Properties getDbParams();  }### Answer:
@Test public void testWbDbParamsRead() throws IOException { Properties prop = WbDbParamsRead.getDbParams(); assertEquals("com.mysql.jdbc.Driver", prop.get("db.driver")); assertTrue(prop.get("db.user").toString().length() > 2); assertTrue(prop.get("db.password").toString().length() > 2); assertTrue(prop.get("db.name").toString().length() > 2); assertTrue(prop.get("db.ip").toString().length() > 5); assertTrue(prop.get("db.port").toString().length() == 4); }