MediatorHelper.java

1
package com.jsql.view.swing.util;
2
3
import com.jsql.model.InjectionModel;
4
import com.jsql.view.swing.JFrameView;
5
import com.jsql.view.swing.manager.*;
6
import com.jsql.view.swing.menubar.Menubar;
7
import com.jsql.view.swing.panel.PanelAddressBar;
8
import com.jsql.view.swing.panel.PanelConsoles;
9
import com.jsql.view.swing.tab.TabConsoles;
10
import com.jsql.view.swing.tab.TabManagersProxy;
11
import com.jsql.view.swing.tab.TabResults;
12
import com.jsql.view.swing.tree.TreeDatabase;
13
14
/**
15
 * Mediator for loosely coupled components.
16
 */
17
public final class MediatorHelper {
18
    
19
    private static InjectionModel model;
20
    
21
    private static TreeDatabase treeDatabase;
22
    private static TabResults tabResults;
23
    private static TabManagersProxy tabManagers;
24
    
25
    private static JFrameView frame;
26
    private static Menubar menubar;
27
    private static PanelAddressBar panelAddressBar;
28
    private static TabConsoles tabConsoles;
29
    private static PanelConsoles panelConsoles;
30
    
31
    private static ManagerScan managerScan;
32
    private static ManagerAdminPage managerAdminPage;
33
    private static ManagerWebShell managerWebshell;
34
    private static ManagerSqlShell managerSqlshell;
35
    private static ManagerFile managerFile;
36
    private static ManagerUpload managerUpload;
37
    private static ManagerBruteForce managerBruteForce;
38
39
    private MediatorHelper() {
40
        // Utility class
41
    }
42
43
    public static InjectionModel model() {
44 1 1. model : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::model → NO_COVERAGE
        return model;
45
    }
46
    
47
    public static TreeDatabase treeDatabase() {
48 1 1. treeDatabase : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::treeDatabase → NO_COVERAGE
        return treeDatabase;
49
    }
50
    
51
    public static TabResults tabResults() {
52 1 1. tabResults : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::tabResults → NO_COVERAGE
        return tabResults;
53
    }
54
    
55
    public static TabManagersProxy tabManagers() {
56 1 1. tabManagers : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::tabManagers → NO_COVERAGE
        return tabManagers;
57
    }
58
     
59
    public static JFrameView frame() {
60 1 1. frame : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::frame → NO_COVERAGE
        return frame;
61
    }
62
    
63
    public static Menubar menubar() {
64 1 1. menubar : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::menubar → NO_COVERAGE
        return menubar;
65
    }
66
    
67
    public static PanelAddressBar panelAddressBar() {
68 1 1. panelAddressBar : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::panelAddressBar → NO_COVERAGE
        return panelAddressBar;
69
    }
70
    
71
    public static TabConsoles tabConsoles() {
72 1 1. tabConsoles : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::tabConsoles → NO_COVERAGE
        return tabConsoles;
73
    }
74
    
75
    public static PanelConsoles panelConsoles() {
76 1 1. panelConsoles : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::panelConsoles → NO_COVERAGE
        return panelConsoles;
77
    }
78
     
79
    public static ManagerWebShell managerWebshell() {
80 1 1. managerWebshell : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerWebshell → NO_COVERAGE
        return managerWebshell;
81
    }
82
    
83
    public static ManagerAdminPage managerAdminPage() {
84 1 1. managerAdminPage : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerAdminPage → NO_COVERAGE
        return managerAdminPage;
85
    }
86
    
87
    public static ManagerFile managerFile() {
88 1 1. managerFile : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerFile → NO_COVERAGE
        return managerFile;
89
    }
90
    
91
    public static ManagerUpload managerUpload() {
92 1 1. managerUpload : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerUpload → NO_COVERAGE
        return managerUpload;
93
    }
94
    
95
    public static ManagerSqlShell managerSqlshell() {
96 1 1. managerSqlshell : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerSqlshell → NO_COVERAGE
        return managerSqlshell;
97
    }
98
    
99
    public static ManagerScan managerScan() {
100 1 1. managerScan : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerScan → NO_COVERAGE
        return managerScan;
101
    }
102
    
103
    public static ManagerBruteForce managerBruteForce() {
104 1 1. managerBruteForce : replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerBruteForce → NO_COVERAGE
        return managerBruteForce;
105
    }
106
    
107
    
108
    // Registering GUI components
109
    
110
    public static void register(JFrameView frame) {
111
        MediatorHelper.frame = frame;
112
    }
113
    
114
    public static void register(Menubar menubar) {
115
        MediatorHelper.menubar = menubar;
116
    }
117
    
118
    public static void register(PanelAddressBar panelAddress) {
119
        MediatorHelper.panelAddressBar = panelAddress;
120
    }
121
    
122
    public static void register(TabConsoles tabConsoles) {
123
        MediatorHelper.tabConsoles = tabConsoles;
124
    }
125
    
126
    public static void register(PanelConsoles panelConsoles) {
127
        MediatorHelper.panelConsoles = panelConsoles;
128
    }
129
    
130
    public static void register(TreeDatabase treeDatabase) {
131
        MediatorHelper.treeDatabase = treeDatabase;
132
    }
133
    
134
    public static void register(TabResults tabResults) {
135
        MediatorHelper.tabResults = tabResults;
136
    }
137
    
138
    public static void register(TabManagersProxy tabManagers) {
139
        MediatorHelper.tabManagers = tabManagers;
140
    }
141
    
142
    
143
    // Registering Managers
144
    
145
    public static void register(ManagerWebShell managerWebshell) {
146
        MediatorHelper.managerWebshell = managerWebshell;
147
    }
148
    
149
    public static void register(ManagerAdminPage managerAdminPage) {
150
        MediatorHelper.managerAdminPage = managerAdminPage;
151
    }
152
    
153
    public static void register(ManagerFile managerFile) {
154
        MediatorHelper.managerFile = managerFile;
155
    }
156
    
157
    public static void register(ManagerUpload managerUpload) {
158
        MediatorHelper.managerUpload = managerUpload;
159
    }
160
    
161
    public static void register(ManagerSqlShell managerSqlshell) {
162
        MediatorHelper.managerSqlshell = managerSqlshell;
163
    }
164
    
165
    public static void register(ManagerScan managerScan) {
166
        MediatorHelper.managerScan = managerScan;
167
    }
168
    
169
    public static void register(ManagerBruteForce managerBruteForce) {
170
        MediatorHelper.managerBruteForce = managerBruteForce;
171
    }
172
173
    public static void register(InjectionModel model) {
174
        MediatorHelper.model = model;
175
    }
176
}

Mutations

44

1.1
Location : model
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::model → NO_COVERAGE

48

1.1
Location : treeDatabase
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::treeDatabase → NO_COVERAGE

52

1.1
Location : tabResults
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::tabResults → NO_COVERAGE

56

1.1
Location : tabManagers
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::tabManagers → NO_COVERAGE

60

1.1
Location : frame
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::frame → NO_COVERAGE

64

1.1
Location : menubar
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::menubar → NO_COVERAGE

68

1.1
Location : panelAddressBar
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::panelAddressBar → NO_COVERAGE

72

1.1
Location : tabConsoles
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::tabConsoles → NO_COVERAGE

76

1.1
Location : panelConsoles
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::panelConsoles → NO_COVERAGE

80

1.1
Location : managerWebshell
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerWebshell → NO_COVERAGE

84

1.1
Location : managerAdminPage
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerAdminPage → NO_COVERAGE

88

1.1
Location : managerFile
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerFile → NO_COVERAGE

92

1.1
Location : managerUpload
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerUpload → NO_COVERAGE

96

1.1
Location : managerSqlshell
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerSqlshell → NO_COVERAGE

100

1.1
Location : managerScan
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerScan → NO_COVERAGE

104

1.1
Location : managerBruteForce
Killed by : none
replaced return value with null for com/jsql/view/swing/util/MediatorHelper::managerBruteForce → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1