ItemListScan.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.list;
12
13
import org.json.JSONObject;
14
15
/**
16
 * Basic object to avoid String incompatibility with drag and drop feature.
17
 */
18
public class ItemListScan extends ItemList {
19
    
20
    private final BeanInjection beanInjection;
21
22
    public ItemListScan(BeanInjection newString) {
23
        
24
        super(newString.getUrl());
25
        this.beanInjection = newString;
26
    }
27
28
    public BeanInjection getBeanInjection() {
29 1 1. getBeanInjection : replaced return value with null for com/jsql/view/swing/list/ItemListScan::getBeanInjection → NO_COVERAGE
        return this.beanInjection;
30
    }
31
    
32
    public String getBeanInjectionToJSON() {
33 1 1. getBeanInjectionToJSON : replaced return value with "" for com/jsql/view/swing/list/ItemListScan::getBeanInjectionToJSON → NO_COVERAGE
        return new JSONObject(this.beanInjection).toString();
34
    }
35
}

Mutations

29

1.1
Location : getBeanInjection
Killed by : none
replaced return value with null for com/jsql/view/swing/list/ItemListScan::getBeanInjection → NO_COVERAGE

33

1.1
Location : getBeanInjectionToJSON
Killed by : none
replaced return value with "" for com/jsql/view/swing/list/ItemListScan::getBeanInjectionToJSON → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.16.1