-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup test expectations in other packages
- Loading branch information
1 parent
0936a8f
commit 9d67800
Showing
7 changed files
with
140 additions
and
1 deletion.
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
40 changes: 40 additions & 0 deletions
40
...Amazon.JSII.Tests.CalculatorPackageId/Amazon/JSII/Tests/CalculatorNamespace/UmaskCheck.cs
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,40 @@ | ||
using Amazon.JSII.Runtime.Deputy; | ||
|
||
#pragma warning disable CS0672,CS0809,CS1591 | ||
|
||
namespace Amazon.JSII.Tests.CalculatorNamespace | ||
{ | ||
/// <summary>Checks the current file permissions are cool (no funky UMASK down-scoping happened).</summary> | ||
/// <remarks> | ||
/// <strong>Stability</strong>: Experimental | ||
/// | ||
/// <strong>See</strong>: https://github.com/aws/jsii/issues/1765 | ||
/// </remarks> | ||
[JsiiClass(nativeType: typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), fullyQualifiedName: "jsii-calc.UmaskCheck")] | ||
public class UmaskCheck : DeputyBase | ||
{ | ||
/// <summary>Used by jsii to construct an instance of this class from a Javascript-owned object reference</summary> | ||
/// <param name="reference">The Javascript-owned object reference</param> | ||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] | ||
protected UmaskCheck(ByRefValue reference): base(reference) | ||
{ | ||
} | ||
|
||
/// <summary>Used by jsii to construct an instance of this class from DeputyProps</summary> | ||
/// <param name="props">The deputy props</param> | ||
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)] | ||
protected UmaskCheck(DeputyProps props): base(props) | ||
{ | ||
} | ||
|
||
/// <summary>This should return 0o644 (-rw-r--r--).</summary> | ||
/// <remarks> | ||
/// <strong>Stability</strong>: Experimental | ||
/// </remarks> | ||
[JsiiMethod(name: "mode", returnsJson: "{\"type\":{\"primitive\":\"number\"}}")] | ||
public static double Mode() | ||
{ | ||
return InvokeStaticMethod<double>(typeof(Amazon.JSII.Tests.CalculatorNamespace.UmaskCheck), new System.Type[]{}, new object[]{}); | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...pected.jsii-calc/java/src/main/java/software/amazon/jsii/tests/calculator/UmaskCheck.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,32 @@ | ||
package software.amazon.jsii.tests.calculator; | ||
|
||
/** | ||
* Checks the current file permissions are cool (no funky UMASK down-scoping happened). | ||
* <p> | ||
* EXPERIMENTAL | ||
* <p> | ||
* @see https://github.com/aws/jsii/issues/1765 | ||
*/ | ||
@javax.annotation.Generated(value = "jsii-pacmak") | ||
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) | ||
@software.amazon.jsii.Jsii(module = software.amazon.jsii.tests.calculator.$Module.class, fqn = "jsii-calc.UmaskCheck") | ||
public class UmaskCheck extends software.amazon.jsii.JsiiObject { | ||
|
||
protected UmaskCheck(final software.amazon.jsii.JsiiObjectRef objRef) { | ||
super(objRef); | ||
} | ||
|
||
protected UmaskCheck(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { | ||
super(initializationMode); | ||
} | ||
|
||
/** | ||
* This should return 0o644 (-rw-r--r--). | ||
* <p> | ||
* EXPERIMENTAL | ||
*/ | ||
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) | ||
public static @org.jetbrains.annotations.NotNull java.lang.Number mode() { | ||
return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.jsii.tests.calculator.UmaskCheck.class, "mode", java.lang.Number.class); | ||
} | ||
} |
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