-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
120 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...tities/ad_extension/action/read/BulkActionAdExtensionReadFromRowValuesActionTextTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.microsoft.bingads.v12.api.test.entities.ad_extension.action.read; | ||
|
||
import java.util.Arrays; | ||
import java.util.Collection; | ||
|
||
import org.junit.Test; | ||
import org.junit.runners.Parameterized.Parameter; | ||
import org.junit.runners.Parameterized.Parameters; | ||
|
||
import com.microsoft.bingads.internal.functionalinterfaces.Function; | ||
import com.microsoft.bingads.v12.api.test.entities.ad_extension.action.BulkActionAdExtensionTest; | ||
import com.microsoft.bingads.v12.bulk.entities.BulkActionAdExtension; | ||
|
||
public class BulkActionAdExtensionReadFromRowValuesActionTextTest extends BulkActionAdExtensionTest { | ||
|
||
@Parameter(value = 1) | ||
public String expectedResult; | ||
|
||
@Parameters | ||
public static Collection<Object[]> data() { | ||
return Arrays.asList(new Object[][]{ | ||
{"Action Text", "Action Text"}, | ||
{null, null} | ||
}); | ||
} | ||
|
||
@Test | ||
public void testRead() { | ||
this.testReadProperty("Action Text", this.datum, this.expectedResult, new Function<BulkActionAdExtension, String>() { | ||
@Override | ||
public String apply(BulkActionAdExtension c) { | ||
return c.getActionText(); | ||
} | ||
}); | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
.../entities/ad_extension/action/write/BulkActionAdExtensionWriteToValuesActionTextTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.microsoft.bingads.v12.api.test.entities.ad_extension.action.write; | ||
|
||
import java.util.Arrays; | ||
import java.util.Collection; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.junit.runners.Parameterized; | ||
import org.junit.runners.Parameterized.Parameter; | ||
import org.junit.runners.Parameterized.Parameters; | ||
|
||
import com.microsoft.bingads.internal.functionalinterfaces.BiConsumer; | ||
import com.microsoft.bingads.v12.api.test.entities.ad_extension.action.BulkActionAdExtensionTest; | ||
import com.microsoft.bingads.v12.bulk.entities.BulkActionAdExtension; | ||
|
||
@RunWith(Parameterized.class) | ||
public class BulkActionAdExtensionWriteToValuesActionTextTest extends BulkActionAdExtensionTest { | ||
|
||
@Parameter(value = 1) | ||
public String propertyValue; | ||
|
||
@Parameters | ||
public static Collection<Object[]> data() { | ||
// In this example, the parameter generator returns a List of | ||
// arrays. Each array has two elements: { datum, expected }. | ||
// These data are hard-coded into the class, but they could be | ||
// generated or loaded in any way you like. | ||
return Arrays.asList(new Object[][]{ | ||
{"Action Text", "Action Text"}, | ||
{null, null},}); | ||
} | ||
|
||
@Test | ||
public void testWrite() { | ||
this.<String>testWriteProperty("Action Text", this.datum, this.propertyValue, new BiConsumer<BulkActionAdExtension, String>() { | ||
@Override | ||
public void accept(BulkActionAdExtension c, String v) { | ||
c.setActionText(v); | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
...bingads/v12/api/test/entities/adgroup/read/BulkAdGroupReadFromRowValuesIsExpiredTest.java
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
...ation/write/BulkAdGroupRemarketingListAssociationWriteToRowValuesRemarketingListTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters