The-Lum
ab09e2ef1f
feat: add %get_all_theme
builtin function
2024-02-14 06:14:19 +00:00
The-Lum
e70f23b8fe
refactor: Change HelpTest
to CommandHelpThemeTest
on a more accurate folder
...
To continue:
- #1655
Change `HelpTest.java` to `CommandHelpThemeTest.java`
Put on a more accurate folder:
- `net.sourceforge.plantuml.help`
2024-02-13 11:04:02 +00:00
The-Lum
e11d974ce5
refactor: place net.sourceforge.plantuml.test
on test.utils
...
Create `test` folder with:
- `example`
- `utils`
And put all `net.sourceforge.plantuml.test` on `test.utils`.
_[no other change]_
2024-02-12 19:13:02 +00:00
The-Lum
3bd3edb740
feat: Random
function: add test and private declaration
...
Add:
- `RandomFunctionTest` test file
- private declaration for random lib.
Ref.:
- #1667
Improve:
- dbaf8ac2cd
- #1668
2024-02-03 14:06:49 +00:00
Arnaud Roques
428381ca44
Merge branch 'tmp2'
2023-12-11 18:36:41 +01:00
Arnaud Roques
c20b3d9642
feat: work on chronology
2023-12-11 18:34:23 +01:00
The-Lum
5c7245623a
test refactor: simplify test using TimTestUtils
...
For: `Chr` and `Ord`
2023-12-08 21:44:05 +00:00
The-Lum
3f836a44cc
fix: allow (int
corresponding of) unicode value for Chr
builtin fct
...
That fixes partialy #1571 .
2023-12-08 21:20:22 +00:00
The-Lum
1cb61d5609
fix: allow different type inside array for GetJsonKey
builtin fct
2023-12-08 21:08:36 +00:00
The-Lum
a570cea56f
feat: Allow JSON Array on JSON preproc.
...
(affectation on plantuml variable, on foreach, ...)
2023-11-27 20:02:54 +00:00
The-Lum
a34f13873c
test: improve [unit] testing
...
Update and refresh this old PR:
- plantuml/plantuml#277
Add on test dependencies:
- [x] [`io.github.glytching:junit-extensions`](https://github.com/glytching/junit-extensions )
- [x] [`Mockito`](https://github.com/mockito/mockito )
- `org.mockito:mockito-core`
- `org.mockito:mockito-junit-jupiter`
Add a first test on:
- `test/utils/LineLocationImplTest.java`
2023-10-02 19:15:20 +00:00
The-Lum
f91e0db9eb
test: first commit for some unit tests of tim/stdlib
functions
...
- `AlwaysFalse`
- `AlwaysTrue`
- `Dec2hex`
- `Feature`
- `GetJsonKey`
- `GetJsonType`
- `Hex2dec`
- `Lower`
- `Size`
- `Upper`
- TBC...
2023-09-17 19:18:35 +00:00
The-Lum
957726fda0
test: create _TemplateStdlibTest
to help test of tim/stdlib
2023-09-16 08:26:32 +00:00
The-Lum
ec260ff0c9
test: add assert help function to test tim/stdlib
2023-09-16 08:18:20 +00:00
The-Lum
3090643256
test: create JunitUtils
to help test with Junit
...
- [x] create `JunitUtils`to help test with Junit
- create `StringJsonConverter` class to use with `@ConvertWith`
2023-09-15 20:54:33 +00:00
Arnaud Roques
4b58055b9f
mod: Handle @start/@end syntax error better
...
https://github.com/plantuml/plantuml/pull/1522
2023-08-28 19:14:15 +02:00
The-Lum
5149c49858
fix: change No @startuml/@enduml found
message to No valid @start/@end found, please check the version
for more readability
...
- [x] Rename `noStartumlFound` function to `noValidStartFound`
- [x] Rename `No @startuml/@enduml found` message to `No valid @start/@end found, please check the version`
Notes:
- Impact also the PicoWebserver;
- _For future enhancement perhaps use `resource` or list of message instead of repeating a message in many different places..._
2023-08-28 15:30:27 +00:00
The-Lum
90198c40d8
refactor: change formatting of should_readFirstDiagram_decode_correctly_different_line_endings
for more readability
2023-08-28 15:01:45 +00:00
The-Lum
0c7f026f6c
test: add new tests on @start/@end
with a failing test to fix
...
- Add passing tests
- Add fail test _(to uncomment)_
2023-08-28 14:52:45 +00:00
Arnaud Roques
38c5765a99
fix: minor issues
...
https://github.com/plantuml/plantuml/issues/1515
https://forum.plantuml.net/18157/last-label-on-last-elseif-branch-does-not-get-rendered
2023-08-24 19:01:41 +02:00
The-Lum
63da3270a6
test: add tests for the builtin function %chr
...
_[TODO: fix `%chr` to allow Unicode chars, the corresponding tests are here.]_
2023-07-27 15:41:03 +00:00
The-Lum
c6cfd3cec6
refactor: use CSV Source for Math and UrlBuilder tests
...
For better readability and maintainability, use `@CsvSource` for:
- Math tests
- UrlBuilder tests
_[FYI: `testGetUrl42` and `testGetUrl50` seems to be identical!, I suppress one]_
2023-07-27 15:25:42 +00:00
The-Lum
8742e77f3c
fix: ord
builtin function: allow Unicode values, add test
...
By this indication:
- https://github.com/plantuml/plantuml/pull/1487#issuecomment-1648082049
Fix `ord` builtin function:
- allow Unicode values
- add tests
2023-07-26 11:27:56 +00:00
soloturn
75443a5d28
java-20 deprecates new URL(), use new URI()
...
cite from the ticket towards openjdk:
The URL class does not itself encode or decode any URL components
according to the escaping mechanism defined in RFC2396. It is the
responsibility of the caller to encode any fields, ...
In Java SE 1.4 a new class, java.net.URI, has been added to mitigate
some of the shortcoming of java.net.URL. Conversion methods to create
an URL from an URI were also added.
references:
* https://inside.java/2023/02/15/quality-heads-up/
* https://bugs.openjdk.org/browse/JDK-8294241
2023-07-08 22:58:42 +02:00
Arnaud Roques
6475c392fc
chore: add tests for testCanWeReadThisEnvironmentVariable
2023-06-13 20:20:32 +02:00
Arnaud Roques
ff6e71e626
fix: only allow to read some environment variables
2023-06-13 12:55:32 +02:00
Arnaud Roques
4a246c7cb9
fix: wip
...
https://forum.plantuml.net/17926/sprite-transparent-only-jar-defined-sprites-are-working
https://github.com/plantuml/plantuml/issues/1448
https://forum.plantuml.net/17932/nwdiag-possible-misbehavior
2023-06-11 20:44:08 +02:00
Arnaud Roques
aedaeec598
chore: update test for pipemap
2023-05-22 19:09:32 +02:00
Arnaud Roques
9c62daa35d
Fix UGraphic hierarchy
2023-03-12 12:41:34 +01:00
Arnaud Roques
75835ce2a0
Packages move and bugfix
2023-02-22 19:43:48 +01:00
Arnaud Roques
4888ac976d
Start major packages refactoring
2023-02-02 18:59:43 +01:00
Arnaud Roques
a5d39f6dda
Version 1.2023.0
2023-01-09 20:13:37 +01:00
Arnaud Roques
58469686e6
Revert StringUtils to original package
2022-12-17 12:10:05 +01:00
Arnaud Roques
ec12ff5f1e
Refactor packages organization
2022-12-17 12:01:10 +01:00
Arnaud Roques
1928fb31ca
wip
2022-10-18 22:57:44 +02:00
Arnaud Roques
f0048de5b7
wip
2022-10-05 22:32:57 +02:00
Arnaud Roques
9bdc69ecee
wip
2022-09-20 22:35:41 +02:00
Arnaud Roques
648b02f8c8
wip
2022-09-18 19:08:06 +02:00
Arnaud Roques
3af1fb7180
Rename %loadJSON to %load_json
2022-08-26 18:06:31 +02:00
Arnaud Roques
6809546c65
wip
2022-08-26 18:00:28 +02:00
Arnaud Roques
b5a6684cd1
Refactoring about colors
2022-08-19 18:34:21 +02:00
Guillaume Grossetie
aaf3a8ee24
resolves #1086 replace printStackTrace by java.util.logging.Logger
2022-08-16 17:22:32 +02:00
Arnaud Roques
229a6129e2
Fixing tests
2022-05-04 19:54:15 +02:00
Arnaud Roques
ebf1b1b622
wip
2022-03-19 13:48:23 +01:00
Arnaud Roques
4be0ee3198
wip
2022-03-13 13:22:51 +01:00
Arnaud Roques
4534dc4ee2
Change default theme
2022-02-10 19:16:18 +01:00
Aljoscha Rittner
31b4d0f29d
Better path check for security files (SFile)
2021-11-22 15:41:49 +01:00
Aljoscha Rittner
e195987b78
Authentication for SURL with BasicAuth and OAuth2 (password and client_credentials)
2021-11-22 12:41:44 +01:00
Aljoscha Rittner
65492a5259
Introduction of an internal function %loadJSON to load JSON data from file or URL.
2021-11-10 10:01:27 +01:00
matthew16550
03272b104a
Delete replaceTransparentByWhite parameter from ISkinParam.getBackgroundColor()
2021-11-09 00:56:52 +11:00