package com.wizzardo.http.framework;

import com.wizzardo.tools.evaluation.Config;

/**
 * Created by wizzardo on 22.12.15.
 */
public class Holders {

    private static WebApplication application;

    public static WebApplication getApplication() {
        return application;
    }

    public static Environment getEnvironment() {
        return application.getEnvironment();
    }

    public static Config getConfig() {
        return application.getConfig();
    }

    static void setApplication(WebApplication app) {
        application = app;
    }
}



@@ -335,32 +335,54 @@
 %7B%0A        return
+ application != null ?
  application.get
@@ -394,16 +394,23 @@
 onment()
+ : null
 ;%0A    %7D%0A
@@ -455,32 +455,54 @@
 %7B%0A        return
+ application != null ?
  application.get
@@ -509,16 +509,23 @@
 Config()
+ : null
 ;%0A    %7D%0A

fix tests