Package org.zaproxy.clientapi.core

Examples of org.zaproxy.clientapi.core.Alert


    Alert third;
    AppScanningSteps steps;

    @Before
    public void setup() {
        first = new Alert("alert1", "url1", Alert.Risk.High, Alert.Reliability.Warning, "param1", "other1");
        second = new Alert("alert2", "url2", Alert.Risk.High, Alert.Reliability.Warning, "param2", "other2");
        third = new Alert("alert3", "url3", Alert.Risk.High, Alert.Reliability.Warning, "param3", "other3");

        steps = new AppScanningSteps();
    }
View Full Code Here


        steps = new AppScanningSteps();
    }

    @Test
    public void testAlertsMatchByValue() {
        Alert copy = new Alert("alert1", "url1", Alert.Risk.High, Alert.Reliability.Warning, "param1", "other1");
        assertThat(steps.alertsMatchByValue(first,copy), is(true));
        assertThat(steps.alertsMatchByValue(first, second), is(false));
    }
View Full Code Here

TOP

Related Classes of org.zaproxy.clientapi.core.Alert

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.