-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http-client-java, generate mock Long number for BigDecimal (#5433)
- mock test data in mgmt was not able to handle `BigDecimal` type Azure/azure-sdk-for-java#43569 - try break the string if too long Azure/azure-sdk-for-java#43574 (but still have "code too large" error, as byte code for a method need to be under 64K)
- Loading branch information
1 parent
4fd8d1f
commit 8f37063
Showing
4 changed files
with
39 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
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
11 changes: 11 additions & 0 deletions
11
...om/microsoft/typespec/http/client/generator/core/util/ConstantStringTooLongException.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,11 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.microsoft.typespec.http.client.generator.core.util; | ||
|
||
public class ConstantStringTooLongException extends RuntimeException { | ||
|
||
public ConstantStringTooLongException() { | ||
super("Constant string too long."); | ||
} | ||
} |
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