Java Code Examples for org.apache.servicecomb.foundation.common.utils.Log4jUtils#init()

The following examples show how to use org.apache.servicecomb.foundation.common.utils.Log4jUtils#init() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();

  new Consumer().testEncrypt();

  System.out.println("Running api dispatcher.");
  new Consumer().run("api");
  System.out.println("Running rest dispatcher.");
  new Consumer().run("rest");
  System.out.println("Running url dispatcher.");
  new Consumer().run("url");
  System.out.println("Running http dispatcher.");
  new Consumer().run("http");

  System.out.println("All test case finished.");
}
 
Example 2
@BeforeClass
public static void setUp() throws Exception {
  vertx = Vertx.vertx();
  vertx.deployVerticle(new SimApolloServer());

  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 3
public static void main(String[] args) throws Exception {
  System.setProperty("sun.net.http.allowRestrictedHeaders", "true");
  Log4jUtils.init();
  BeanUtils.init();

  run();

  TestMgr.summary();
  System.setProperty("sun.net.http.allowRestrictedHeaders", "false");
}
 
Example 4
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();

  BClient client = BeanUtils.getContext().getBean(BClient.class);
  client.run();

  TestMgr.summary();
}
 
Example 5
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();

  AClient aClient = BeanUtils.getContext().getBean(AClient.class);
  BClient bClient = BeanUtils.getContext().getBean(BClient.class);

  aClient.run();
  bClient.run();

  TestMgr.summary();
}
 
Example 6
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();

  AClient client = BeanUtils.getContext().getBean(AClient.class);
  client.run();

  TestMgr.summary();
}
 
Example 7
Source Project: rpc-benchmark   File: Server.java    License: Apache License 2.0 5 votes vote down vote up
public static void main(String[] args) throws Exception {
	Object exec = GlobalEventExecutor.INSTANCE;
	System.out.println(exec);

	Log4jUtils.init();
	BeanUtils.init();
}
 
Example 8
public static void main(String[] args) throws Exception {
  try {
    Log4jUtils.init();
    BeanUtils.init();

    run();
  } catch (Throwable e) {
    TestMgr.check("success", "failed");
    LOGGER.error("-------------- test failed -------------");
    LOGGER.error("", e);
    LOGGER.error("-------------- test failed -------------");
  }
  TestMgr.summary();
}
 
Example 9
Source Project: spring-cloud-huawei   File: AppMain.java    License: Apache License 2.0 4 votes vote down vote up
public static void main(String[] args) throws Exception {
    Log4jUtils.init();
    BeanUtils.init();
}
 
Example 10
Source Project: spring-cloud-huawei   File: EdgeMain.java    License: Apache License 2.0 4 votes vote down vote up
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 11
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 12
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 13
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 14
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 15
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 16
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 17
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 18
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 19
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}
 
Example 20
public static void main(String[] args) throws Exception {
  Log4jUtils.init();
  BeanUtils.init();
}