AddDatabases.java

1
/*******************************************************************************
2
 * Copyhacked (H) 2012-2020.
3
 * This program and the accompanying materials
4
 * are made available under no term at all, use it like
5
 * you want, but share and discuss about it
6
 * every time possible with every body.
7
 * 
8
 * Contributors:
9
 *      ron190 at ymail dot com - initial implementation
10
 ******************************************************************************/
11
package com.jsql.view.swing.interaction;
12
13
import com.jsql.model.bean.database.Database;
14
import com.jsql.view.interaction.InteractionCommand;
15
import com.jsql.view.swing.util.MediatorHelper;
16
17
import java.util.List;
18
19
/**
20
 * Add the databases to current injection panel.
21
 */
22
public class AddDatabases implements InteractionCommand {
23
    
24
    /**
25
     * Databases retrieved by the view.
26
     */
27
    private final List<Database> databases;
28
29
    /**
30
     * @param interactionParams List of databases retrieved by the Model
31
     */
32
    @SuppressWarnings("unchecked")
33
    public AddDatabases(Object[] interactionParams) {
34
        // Get list of databases from the model
35
        this.databases = (List<Database>) interactionParams[0];
36
    }
37
38
    @Override
39
    public void execute() {
40 1 1. execute : removed call to com/jsql/view/swing/tree/TreeDatabase::addDatabases → NO_COVERAGE
        MediatorHelper.treeDatabase().addDatabases(this.databases);
41
    }
42
}

Mutations

40

1.1
Location : execute
Killed by : none
removed call to com/jsql/view/swing/tree/TreeDatabase::addDatabases → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1