CreateFileTab.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.view.interaction.InteractionCommand;
14
import com.jsql.view.swing.util.MediatorHelper;
15
16
/**
17
 * Create a new tab for the file.
18
 */
19
public class CreateFileTab extends CreateTabHelper implements InteractionCommand {
20
    
21
    /**
22
     * Name of the file.
23
     */
24
    private final String label;
25
26
    /**
27
     * Content of the file.
28
     */
29
    private final String content;
30
31
    /**
32
     * Full path of the file.
33
     */
34
    private final String path;
35
36
    /**
37
     * @param interactionParams Name, content and path of the file
38
     */
39
    public CreateFileTab(Object[] interactionParams) {
40
        
41
        this.label = (String) interactionParams[0];
42
        this.content = (String) interactionParams[1];
43
        this.path = (String) interactionParams[2];
44
    }
45
46
    @Override
47
    public void execute() {
48 1 1. execute : removed call to com/jsql/view/swing/tab/TabResults::createFileTab → NO_COVERAGE
        MediatorHelper.tabResults().createFileTab(this.label, this.content, this.path);
49
    }
50
}

Mutations

48

1.1
Location : execute
Killed by : none
removed call to com/jsql/view/swing/tab/TabResults::createFileTab → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1