Skip to content

Change name of BooleanToogleModification to BooleanToggleModification #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import de.rub.nds.modifiablevariable.biginteger.BigIntegerSubtractModification;
import de.rub.nds.modifiablevariable.biginteger.BigIntegerXorModification;
import de.rub.nds.modifiablevariable.bool.BooleanExplicitValueModification;
import de.rub.nds.modifiablevariable.bool.BooleanToogleModification;
import de.rub.nds.modifiablevariable.bool.BooleanToggleModification;
import de.rub.nds.modifiablevariable.bytearray.*;
import de.rub.nds.modifiablevariable.filter.AccessModificationFilter;
import de.rub.nds.modifiablevariable.integer.IntegerAddModification;
Expand All @@ -42,7 +42,7 @@
@XmlTransient
@XmlSeeAlso({ AccessModificationFilter.class, BigIntegerAddModification.class, BigIntegerInteractiveModification.class,
BigIntegerExplicitValueModification.class, BigIntegerSubtractModification.class,
BooleanExplicitValueModification.class, BooleanToogleModification.class, BigIntegerXorModification.class,
BooleanExplicitValueModification.class, BooleanToggleModification.class, BigIntegerXorModification.class,
BigIntegerShiftLeftModification.class, BigIntegerShiftRightModification.class, IntegerAddModification.class,
IntegerExplicitValueModification.class, IntegerSubtractModification.class, IntegerXorModification.class,
IntegerShiftLeftModification.class, IntegerShiftRightModification.class, ByteArrayDeleteModification.class,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public static VariableModification<Boolean> createRandomModification() {
case 1:
return new BooleanExplicitValueModification(false);
case 2:
return new BooleanToogleModification();
return new BooleanToggleModification();
}
return null;
}

public static VariableModification<Boolean> toogle() {
return new BooleanToogleModification();
return new BooleanToggleModification();
}

public static VariableModification<Boolean> explicitValue(final boolean explicitValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

@XmlRootElement
@XmlType(propOrder = { "modificationFilter", "postModification" })
public class BooleanToogleModification extends VariableModification<Boolean> {
public class BooleanToggleModification extends VariableModification<Boolean> {

public BooleanToogleModification() {
public BooleanToggleModification() {
}

@Override
Expand All @@ -29,7 +29,7 @@ protected Boolean modifyImplementationHook(Boolean input) {

@Override
public VariableModification<Boolean> getModifiedCopy() {
return new BooleanToogleModification();
return new BooleanToggleModification();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import de.rub.nds.modifiablevariable.biginteger.BigIntegerModificationFactory;
import de.rub.nds.modifiablevariable.biginteger.ModifiableBigInteger;
import de.rub.nds.modifiablevariable.bool.BooleanExplicitValueModification;
import de.rub.nds.modifiablevariable.bool.BooleanToogleModification;
import de.rub.nds.modifiablevariable.bool.BooleanToggleModification;
import de.rub.nds.modifiablevariable.bool.ModifiableBoolean;
import de.rub.nds.modifiablevariable.bytearray.ByteArrayModificationFactory;
import de.rub.nds.modifiablevariable.bytearray.ModifiableByteArray;
Expand Down Expand Up @@ -150,7 +150,7 @@ public static ModifiableByteArray duplicate() {
}

public static ModifiableBoolean toggle() {
return getModifiableBooleanWithModification(new BooleanToogleModification());
return getModifiableBooleanWithModification(new BooleanToggleModification());
}

public static ModifiableBigInteger shiftLeftBigInteger(Integer i) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*
* Copyright 2019 captain.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.rub.nds.modifiablevariable.biginteger;

import java.math.BigInteger;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/**
*
* @author captain
*/
public class BigIntegerAddModificationTest {

private BigIntegerAddModification b1;

private BigIntegerAddModification b2;

private BigIntegerAddModification b3;

private Integer integer1;

@Before
public void setUp() {
b1 = new BigIntegerAddModification(BigInteger.ONE);
b2 = new BigIntegerAddModification(BigInteger.TEN);
b3 = new BigIntegerAddModification(BigInteger.ONE);
integer1 = 1;
}

/**
* Test of modifyImplementationHook method, of class
* BigIntegerAddModification.
*/
@Test
public void testModifyImplementationHook() {
}

/**
* Test of getSummand method, of class BigIntegerAddModification.
*/
@Test
public void testGetSummand() {
}

/**
* Test of setSummand method, of class BigIntegerAddModification.
*/
@Test
public void testSetSummand() {
}

/**
* Test of getModifiedCopy method, of class BigIntegerAddModification.
*/
@Test
public void testGetModifiedCopy() {
}

/**
* Test of hashCode method, of class BigIntegerAddModification.
*/
@Test
public void testHashCode() {
}

/**
* Test of equals method, of class BigIntegerAddModification.
*/
@Test
public void testEquals() {
assertFalse(b1.equals(b2));
assertFalse(b1.equals(integer1));
assertTrue(b1.equals(b1));
assertTrue(b1.equals(b3));
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*
* Copyright 2019 captain.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.rub.nds.modifiablevariable.biginteger;

import java.math.BigInteger;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;

/**
*
* @author captain
*/
public class BigIntegerExplicitValueModificationTest {

private BigIntegerExplicitValueModification b1;
private BigIntegerExplicitValueModification b2;
private BigIntegerExplicitValueModification b3;
private Integer integer1;

@Before
public void setUp() {
b1 = new BigIntegerExplicitValueModification(BigInteger.ONE);
b2 = new BigIntegerExplicitValueModification(BigInteger.TEN);
b3 = new BigIntegerExplicitValueModification(BigInteger.ONE);
integer1 = 1;
}

/**
* Test of modifyImplementationHook method, of class
* BigIntegerExplicitValueModification.
*/
@Test
public void testModifyImplementationHook() {
}

/**
* Test of getExplicitValue method, of class
* BigIntegerExplicitValueModification.
*/
@Test
public void testGetExplicitValue() {
}

/**
* Test of setExplicitValue method, of class
* BigIntegerExplicitValueModification.
*/
@Test
public void testSetExplicitValue() {
}

/**
* Test of getModifiedCopy method, of class
* BigIntegerExplicitValueModification.
*/
@Test
public void testGetModifiedCopy() {
}

/**
* Test of hashCode method, of class BigIntegerExplicitValueModification.
*/
@Test
public void testHashCode() {
}

/**
* Test of equals method, of class BigIntegerExplicitValueModification.
*/
@Test
public void testEquals() {
assertFalse(b1.equals(b2));
assertFalse(b1.equals(integer1));
assertTrue(b1.equals(b1));
assertTrue(b1.equals(b3));
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/*
* Copyright 2019 captain.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package de.rub.nds.modifiablevariable.biginteger;

import java.math.BigInteger;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
*
* @author captain
*/
public class BigIntegerSubtractModificationTest {

private BigIntegerSubtractModification b1;
private BigIntegerSubtractModification b2;
private BigIntegerSubtractModification b3;
private Integer integer1;

@Before
public void setUp() {
b1 = new BigIntegerSubtractModification(BigInteger.ONE);
b2 = new BigIntegerSubtractModification(BigInteger.TEN);
b3 = new BigIntegerSubtractModification(BigInteger.ONE);
integer1 = 1;
}

/**
* Test of modifyImplementationHook method, of class
* BigIntegerSubtractModification.
*/
@Test
public void testModifyImplementationHook() {
}

/**
* Test of getSubtrahend method, of class BigIntegerSubtractModification.
*/
@Test
public void testGetSubtrahend() {
}

/**
* Test of setSubtrahend method, of class BigIntegerSubtractModification.
*/
@Test
public void testSetSubtrahend() {
}

/**
* Test of getModifiedCopy method, of class BigIntegerSubtractModification.
*/
@Test
public void testGetModifiedCopy() {
}

/**
* Test of hashCode method, of class BigIntegerSubtractModification.
*/
@Test
public void testHashCode() {
}

/**
* Test of equals method, of class BigIntegerSubtractModification.
*/
@Test
public void testEquals() {
assertFalse(b1.equals(b2));
assertFalse(b1.equals(integer1));
assertTrue(b1.equals(b1));
assertTrue(b1.equals(b3));
}

}
Loading