### Clone and Build WingsBoot Project Source: https://github.com/trydofor/professional-wings/blob/main/readme-zh.md This snippet shows how to clone the WingsBoot source code, update submodules, build and install dependencies, and finally build and install the WingsBoot project itself. It also includes a command to report issues using a generated JAR file. ```bash ## ① 获取源码,成功后进入项目目录 git clone --depth 1 https://github.com/\ntrydofor/professional-wings.git ## ② 安装依赖,可跳过,支持java8编译 # asdf shell java temurin-8.0.412+8 git submodule update --remote --init (cd observe/meepo && mvn package install) (cd observe/mirana && mvn package install) ## ③ 安装wings,java-21 # asdf shell java temurin-21.0.3+9.0.LTS mvn package install ## ④ 报告Issue java -jar silencer-*-SNAPSHOT.jar ``` -------------------------------- ### Clone and Install WingsBoot Dependencies Source: https://github.com/trydofor/professional-wings/blob/main/readme.md This snippet shows how to clone the WingsBoot project source code and install its dependencies using Maven. It includes commands for both Java 8 and Java 21 environments, as well as submodule updates. ```Bash ## (1) get source code git clone --depth 1 https://github.com/trydofor/professional-wings.git ## (2) install dependency using java8 # asdf shell java temurin-8.0.412+8 git submodule update --remote --init (cd observe/meepo && mvn package install) (cd observe/mirana && mvn package install) ## (3) install wings using java-21 # asdf shell java temurin-21.0.3+9.0.LTS mvn package install ## (4) report issue java -jar silencer-*-SNAPSHOT.jar ``` -------------------------------- ### AssertionLoggerTest: Install, Assert, and Uninstall Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the lifecycle management of an assertion logger, including installation, assertion execution, and uninstallation. This verifies the proper setup, validation, and cleanup of the assertion logging mechanism. ```Java /** * Test for install, assert and uninstall */ public class AssertionLoggerTest { // Test methods for assertion logger lifecycle management } ``` -------------------------------- ### Warlock Schema Management (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for cleaning, initializing, and managing the Warlock schema, including authentication schema setup. ```Java 14007 DatabaseWarlockTest: clean and init warlock schema ``` ```Java 14018 TestWarlock1SchemaManagerSample: init auth schema for main ``` ```Java 14019 TestWarlock1SchemaManagerSample: init auth schema from test ``` ```Java 14020 TestWarlock1SchemaManagerSample: execute sql from somefix ``` -------------------------------- ### SilencerContextHelperTest: List All Property Keys and Get Values Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the SilencerContextHelper's capability to list all property keys and retrieve their corresponding values. This ensures that properties can be dynamically accessed by their keys. ```Java /** * Test for list all prop key and get its value */ public class SilencerContextHelperTest { // Test methods for listing property keys and retrieving their values } ``` -------------------------------- ### Test Wings Init Database Sample Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Provides a sample for initializing the database at a specific revision, 'TestV1'. This is useful for setting up test environments. ```Java class TestWingsInitDatabaseSample { // init database at revision TestV1 sample } ``` -------------------------------- ### JOOQ DSL Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Provides a sample usage of the JOOQ DSL (Domain Specific Language) for building SQL queries programmatically. ```Java TestJooqDslAndDaoSample: jooq dsl sample ``` -------------------------------- ### Shadow Table Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Demonstrates the creation and usage of a 'shadow table' sample, likely for versioning or auditing purposes. ```Java TestJooqDslAndDaoSample: new shadow table sample ``` -------------------------------- ### Test Wings Flyway Init Database Sample Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Provides a sample for forcing an update in the Flyway database initialization process. This is useful for testing specific update scenarios. ```Java class TestWingsFlywaveInitDatabaseSample { // force update sample } ``` -------------------------------- ### JOOQ Dynamic SQL Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Demonstrates building dynamic SQL queries using JOOQ's conditional logic. ```Java TestJooqMostSelectSample: dynamic sql sample ``` -------------------------------- ### Journal JOOQ Helper Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Demonstrates the usage of the JournalJooqHelper for interacting with journaled data using JOOQ. ```Java TestJooqDslAndDaoSample: JournalJooqHelper sample ``` -------------------------------- ### OkHttpClientHelper Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for OkHttpClientHelper, covering POSTing JSON and files, downloading files, and handling specific naming conventions. ```Java 13047 OkHttpClientHelperTest: post json ``` ```Java 13048 OkHttpClientHelperTest: post json with `Bad` naming (1-letter prefix) ``` ```Java 13049 OkHttpClientHelperTest: post file ``` ```Java 13050 OkHttpClientHelperTest: download file ``` -------------------------------- ### Test Wings Schema Generator Sample Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Provides a sample for initializing the database at revision 'TestV2'. This test case focuses on schema generation and initialization. ```Java class TestWingsSchemaGeneratorSample { // init database at revision TestV2 sample } ``` -------------------------------- ### Database Schema Initialization (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for cleaning and initializing various database schemas including wings, faceless, and shard_0. ```Java 14081 DatabaseWingsTest: clean and init wings schema ``` ```Java 14082 DatabaseFacelessTest: clean and init faceless schema ``` ```Java 14083 DatabaseShard0Test: clean and init shard_0 schema ``` -------------------------------- ### JOOQ Function Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Demonstrates the usage of JOOQ functions within SQL queries. ```Java TestJooqMostSelectSample: dsl function sample ``` -------------------------------- ### Test Wings Schema Dumper Sample Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Demonstrates dumping the database schema (DDL and data) to a file. This is useful for backup and version control of the database structure. ```Java class TestWingsSchemaDumperSample { // dump DDL and data to file sample } ``` -------------------------------- ### Light ID Provider Implementations (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the instantiation and behavior of different Light ID provider implementations: Database, Hazelcast, and JVM. ```Java 14061 DbLightIdProviderTest: database impl instance ``` ```Java 14062 HzLightIdProviderTest: hazelcast impl instance ``` ```Java 14063 JvmLightIdProviderTest: jvm impl instance ``` ```Java 14076 JvmLightIdProviderTest: 50 instances compete for 1 db by tx ``` -------------------------------- ### JOOQ Insert POJO Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Demonstrates how to insert a Plain Old Java Object (POJO) into the database using JOOQ. ```Java TestJooqMostSelectSample: insert pojo sample ``` -------------------------------- ### Logic Delete Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Provides a sample demonstrating the implementation and usage of logical delete operations. ```Java TestJooqDslAndDaoSample: check Logic delete sample ``` -------------------------------- ### DAO Diff Insert/Update/Delete Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Provides a sample showcasing the differences in insert, update, and delete operations when using a DAO. ```Java TestJooqDslAndDaoSample: dao diff insert/update/delete sample ``` -------------------------------- ### Test Wings Flyway Shard Journal Sample Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Demonstrates a sample for managing sharded revisions and journals using Flyway. This test case focuses on the integration of sharding with Flyway's versioning system. ```Java class TestWingsFlywaveShardJournalSample { // revision shard and journal sample } ``` -------------------------------- ### Jooq Code Auto Generation Sample Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Demonstrates a sample for Jooq code auto-generation. This showcases the capabilities of Jooq in generating Java code from database schemas. ```Java class JooqCodeAutoGenSample { // jooq codegen sample } ``` -------------------------------- ### Journal Diff Helper Insert/Update/Delete Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Demonstrates insert, update, and delete operations using the JournalDiffHelper, likely for tracking changes in journaled data. ```Java TestJooqDslAndDaoSample: JournalDiffHelper insert/update/delete sample ``` -------------------------------- ### LightId Service Implementation Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the LightIdServiceImpl for various functionalities including schema initialization, fetching lightIds using jdbcTemplate and journalService, concurrent fetching, and checking lightId ranges. ```Java class LightIdServiceImplTest { // clean and init schema itself // fetch lightId by jdbcTemplate // fetch lightId by journalService // fetch lightId in 5000x100 CountDownLatch // check lightId range } ``` -------------------------------- ### JOOQ DAO Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Provides a sample usage of the JOOQ Data Access Object (DAO) for common database operations. ```Java TestJooqDslAndDaoSample: jooq dao sample ``` -------------------------------- ### JDBC Template Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the usage of the JDBC template for executing SQL queries. ```Java TestJooqMostSelectSample: jdbc template sample ``` -------------------------------- ### InfoPrintTest: Print Build and Git Info Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the functionality of printing build and Git information. This test verifies that the system can correctly retrieve and display details about the current build and the associated Git repository. ```Java /** * Test for printing build and git info */ public class InfoPrintTest { // Test methods for printing build and Git information } ``` -------------------------------- ### Runtime Configuration Handling (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests various aspects of runtime configuration, including simple types, collections (List, Map), JSON, Kryo serialization, enum types, and caching. ```Java 14008 RuntimeConfServiceTest: simple type in runtime config ``` ```Java 14009 RuntimeConfServiceTest: List, Map in runtime config ``` ```Java 14010 RuntimeConfServiceTest: json in runtime config ``` ```Java 14011 RuntimeConfServiceTest: kryo in runtime config ``` ```Java 14012 RuntimeConfServiceTest: enum type in runtime config ``` ```Java 14013 RuntimeConfServiceTest: caching of runtime config, check log ``` -------------------------------- ### SilencerContextHelperTest: List All Property Resource Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the SilencerContextHelper's ability to list all property resources. This verification ensures that the helper can correctly identify and provide access to all configured property resource files. ```Java /** * Test for list all prop resource */ public class SilencerContextHelperTest { // Test methods for listing all property resources } ``` -------------------------------- ### JOOQ Paginate Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests pagination functionality when using JOOQ for data retrieval. ```Java TestJooqMostSelectSample: paginate jooq sample ``` -------------------------------- ### JOOQ Mixing SQL Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the ability to mix JOOQ DSL queries with raw SQL statements. ```Java TestJooqMostSelectSample: mixing sql sample ``` -------------------------------- ### Slardar OkHttp3 Configuration Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for Slardar OkHttp3 configuration, specifically integrating OkHttpClient with RestTemplate. ```Java 13085 SlardarOkhttp3ConfigurationTest: restTemplate with okHttpClient ``` -------------------------------- ### Safe HTTP Helper Tests (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the SafeHttpHelper for secure redirects based on host and IPv6, and for parsing host and port information. ```Java 14051 SafeHttpHelperTest: safe redirect on host and ipv6 ``` ```Java 14052 SafeHttpHelperTest: parse host and port ``` -------------------------------- ### CommonPropHelperTest: Resource String Handling Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the CommonPropHelper's functionality for handling resource strings. This verifies how the helper manages and retrieves values from resource files. ```Java /** * Test for resource string */ public class CommonPropHelperTest { // Test methods for handling resource strings } ``` -------------------------------- ### Default Passsalt Encoder Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for DefaultPasssaltEncoder, covering time-cost of PasswordEncoder, SHA256 salt, and MySQL password functions. ```Java 13082 DefaultPasssaltEncoderTest: print time-cost of PasswordEncoder ``` ```Java 13083 DefaultPasssaltEncoderTest: sha256 salt ``` ```Java 13084 DefaultPasssaltEncoderTest: mysql password function ``` -------------------------------- ### JOOQ Named Binding Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the use of named bindings in JOOQ queries for parameter substitution. ```Java TestJooqMostSelectSample: named binding sample ``` -------------------------------- ### JDBC Paginate Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests pagination functionality when using the standard JDBC template for data retrieval. ```Java TestJooqMostSelectSample: paginate jdbc sample ``` -------------------------------- ### Event Publish Helper Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for EventPublishHelper, covering synchronous and asynchronous Spring events, and global events. ```Java 13019 EventPublishHelperTest: sync spring event ``` ```Java 13020 EventPublishHelperTest: async spring event ``` ```Java 13021 EventPublishHelperTest: sync global event ``` -------------------------------- ### SilencerContextHelperTest: List All Property Key-Value Map Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the functionality of SilencerContextHelper to list all available property key-value pairs. This ensures that all configured properties can be retrieved and accessed through the helper. ```Java /** * Test for list all prop key-value map */ public class SilencerContextHelperTest { // Test methods for listing all property key-value pairs } ``` -------------------------------- ### Wings Jooq Dao Alias Implementation Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the Wings Jooq Dao Alias implementation, including schema initialization, batch loading, batch insertion, batch merging, and batch storing, with checks on logs. ```Java class WingsJooqDaoAliasImplTest { // clean and init schema itself // batch load, check log // batch insert, check log // batch merge // batch store } ``` -------------------------------- ### Test Wings Schema Journal Sample Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the management of the schema journal on a table. This includes creating tables with prefixes, sharding, and various types of triggers (after-insert, after-update, before-delete). ```Java class TestWingsSchemaJournalSample { // manage journal on table sample } ``` ```Java class SchemaJournalManagerTest { // clean and init schema itself // create table with prefix // create sharding // create after-insert trigger // create after-update trigger // create before-delete trigger // create/delete all trigger // alter table then alter sharding and trigger } ``` -------------------------------- ### Parameter and Type Handling (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests JSON type handling in MVC responses and differences between Jackson and Fastjson type handling. ```Java 14035 Param1ControllerTest: test json type by mvc response ``` ```Java 14036 Param1ControllerTest: diff jackson and fastjson type ``` -------------------------------- ### Cache Eviction Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for the `WingsCacheInterceptor` focusing on its ability to evict multiple cache keys efficiently. ```Java WingsCacheInterceptorTest: evict multiple cache keys ``` -------------------------------- ### Memory and Nonce Login Tests (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests login functionalities using memory-configured users and permissions, supporting username and email logins, and session listing. ```Java 14047 MemLoginTest: username login with memory config user and perm ``` ```Java 14048 MemLoginTest: email login with memory config user and perm ``` ```Java 14049 MemLoginTest: list session for username and email login ``` ```Java 14050 NonceLoginTest: test_ny login and check timezone ``` -------------------------------- ### JOOQ Schema Initialization Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the process of cleaning and initializing the database schema for JOOQ operations. This ensures a consistent state for testing. ```Java JooqDeleteListenerTest: clean and init schema itself ``` ```Java JooqMapperCompatibleTest: clean and init schema itself ``` ```Java JooqTableCudListenerTest: clean and init schema itself ``` ```Java TransactionalServiceTest: clean and init schema itself ``` ```Java TestJooqDslAndDaoSample: clean and init schema itself ``` ```Java TestJooqMostSelectSample: clean and init schema itself ``` ```Java FlywaveShardingTest: clean and init schema itself ``` ```Java JooqShardingTest: clean and init schema itself ``` -------------------------------- ### Nonce and Permission Login (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests login functionalities using nonces and permissions, including root login, account locking, and role/permission caching. ```Java 14014 NoncePermLoginTest: root login with nonce ``` ```Java 14015 NoncePermLoginTest: lock account on danger ``` ```Java 14016 WarlockPermServiceTest: load all perm and caching ``` ```Java 14017 WarlockRoleServiceTest: load all role and caching ``` -------------------------------- ### Password Encoding and Ticket Handling (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests password encoding with salts and the encode/decode functionality for Warlock tickets. ```Java 14053 PasswordEncoderTest: print encoded password with salt ``` ```Java 14054 WarlockTicketServiceTest: encode and decode Term ``` -------------------------------- ### Constant Enum Generator Sample Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Provides a sample for generating ConstantEnum. This test case demonstrates the functionality of the ConstantEnum generator. ```Java class ConstantEnumGenSample { // gen ConstantEnum sample } ``` -------------------------------- ### Mock ConnectionProvider with Spring Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests mocking the `ConnectionProvider` using Spring's dependency injection framework. ```Java MockTstNormalTableTest: mock ConnectionProvider by spring ``` -------------------------------- ### Code Generation Samples (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for code generation functionalities, specifically for enums, Jooq, and authentication-related code. ```Java 14021 TestWarlock2CodeGeneratorSample: code gen for enum ``` ```Java 14022 TestWarlock2CodeGeneratorSample: code gen for jooq ``` ```Java 14023 TestWarlock2CodeGeneratorSample: code gen for auth ``` -------------------------------- ### Warlock Caching and Normalization (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the caching mechanisms for Warlock permissions and roles, and the normalization of role naming prefixes. ```Java 14064 WarlockPermCacheTest: load perm and role caching, check log ``` ```Java 14065 WarlockPermNormalizerTest: normalize role naming prefix ``` -------------------------------- ### Security and Access Control Tests (Java) Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Covers various security aspects including stopwatch timeline, authentication state building, 302 redirects, 401/403 access denials for different user states (anonymous, logged in, logged out), and guest session handling. ```Java 14037 WarlockWatchingTest: stopwatch timeline ``` ```Java 14038 AuthStateBuilderTest: check authStateBuilder by mock ``` ```Java 14039 AccessDeny302Test: 302 redirect ``` ```Java 14040 AccessDeny401Test: 401 forward via post form login ``` ```Java 14041 AccessDeny401Test: 401 forward via basic auth login ``` ```Java 14042 AccessDeny403Test: 403 on anonymous ``` ```Java 14043 AccessDeny403Test: 403 on login user ``` ```Java 14044 AccessDeny403Test: 403 on logout user ``` ```Java 14045 GuestSessionTest: guest get session ``` ```Java 14046 GuestSessionTest: 401 on authenticated ``` -------------------------------- ### Flywave Sharding Insert Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests inserting data into sharded tables using Flywave for schema management. ```Java FlywaveShardingTest: insert data in the writer ``` -------------------------------- ### Simple JdbcTemplate Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests a simple wrapper around JdbcTemplate for database operations. This provides a streamlined way to interact with the database using JDBC. ```Java class SimpleJdbcTemplateTest { // simple jdbc template wrapper } ``` -------------------------------- ### Module Root and Path Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the configuration and retrieval of module root paths within the project structure. ```Java WingsRevisionTest: module root and path ``` -------------------------------- ### Datasource Context Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the datasource context management, specifically for single datasource configurations. This ensures proper handling of data source connections. ```Java class DataSourceContextTest { // Test for datasource context on single } ``` -------------------------------- ### CommonPropHelperTest: Comma Delimited String Handling Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the CommonPropHelper's ability to process comma-delimited strings. This verifies how the helper parses and handles string values separated by commas. ```Java /** * Test for comma delimited string */ public class CommonPropHelperTest { // Test methods for handling comma-delimited strings } ``` -------------------------------- ### Database Checker Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Includes tests for database timezone settings and Flyway revision management. These tests ensure the database is configured correctly and migrations are applied properly. ```Java class DatabaseCheckerTest { // Test for database timezone and flywave revision } ``` -------------------------------- ### WingsSilencerProfile2Test: Development and Test Profile Configuration Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the configuration for both 'dev' (development) and 'test' profiles in WingsSilencer. This scenario verifies how the system handles combined profile settings, ensuring correct behavior when multiple environments are active. ```Java /** * Test for profile dev and test */ public class WingsSilencerProfile2Test { // Test methods for combined development and test profile configuration } ``` -------------------------------- ### One Line Setter Sugar Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests a concise 'setter sugar' utility, likely allowing for simplified object property setting. ```Java SetterSugarTest: one line setter sugar ``` -------------------------------- ### RestTemplateHelper Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for RestTemplateHelper, covering POSTing JSON, form data, files, and downloading files. ```Java 13052 RestTemplateHelperTest: post json ``` ```Java 13053 RestTemplateHelperTest: post form key-value ``` ```Java 13054 RestTemplateHelperTest: post file ``` ```Java 13055 RestTemplateHelperTest: download file ``` -------------------------------- ### WingsSilencerProfile0Test: Default Profile Configuration Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the default profile configuration for WingsSilencer. This involves verifying that the system correctly applies settings when no specific profile is activated, ensuring a stable baseline behavior. ```Java /** * Test for profile default */ public class WingsSilencerProfile0Test { // Test methods for default profile configuration } ``` -------------------------------- ### Now Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for Now functionality, including system clock offset and client clock/timezone adjustments. ```Java 13005 NowTest: tweak system clock-offset ``` ```Java 13006 NowTest: tweak client clock and timezone ``` -------------------------------- ### Retrofit Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for Retrofit, covering Jackson and file handling with both built and autowired clients, and JSON serialization with FastJson and Jackson. ```Java 13056 RetrofitTest: jackson and file with built client ``` ```Java 13057 RetrofitTest: jackson and file with autowired client ``` ```Java 13058 RetrofitTest: print fastjson and jackson with `Bad` naming ``` -------------------------------- ### JOOQ Select On-Demand Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the 'select on-demand' feature in JOOQ, allowing selective fetching of data. ```Java TestJooqMostSelectSample: select on-demand sample ``` -------------------------------- ### Mock DSLContext to Dao Instance Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests mocking the `DSLContext` to be used with a DAO instance, facilitating unit testing of DAO logic. ```Java MockTstNormalTableTest: mock DSLContext to Dao instance ``` -------------------------------- ### Auto DTO Helper Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for AutoDtoHelper, covering AutoDto usage in requests and responses. ```Java 13002 AutoDtoHelperTest: AutoDto in request ``` ```Java 13003 AutoDtoHelperTest: AutoDto in response ``` -------------------------------- ### FastJson Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for FastJson, covering JSON object creation, number formatting as strings, and handling specific issues. ```Java 13010 FastJsonTest: json object by default ``` ```Java 13011 FastJsonTest: json number as string ``` ```Java 13012 FastJsonTest: json number as string with thousands ``` ```Java 13013 FastJsonTest: json number as string issue 1537 ``` -------------------------------- ### Smart Formatter Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for SmartFormatter, covering date format printing and LocalDateTime parsing with smart patterns and timezones. ```Java 13007 SmartFormatterTest: print date format of pattern ``` ```Java 13008 SmartFormatterTest: parse LocalDateTime of smart pattern ``` ```Java 13009 SmartFormatterTest: parse LocalDateTime by smart pattern with timezone ``` -------------------------------- ### JOOQ Fetch Record into Array Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests fetching JOOQ records from the database and storing them into an array. ```Java JooqMapperCompatibleTest: jooq fetch record into array ``` -------------------------------- ### Wings Sharding Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the sharding logic for the 'wg_order' table, including printing statements for dropping, creating, inserting, altering the table, and creating triggers. ```Java class WingsShardingTest { // print drop table wg_order in sharding // print create table wg_order in sharding // print insert into wg_order in sharding // print alter table wg_order in sharding // print trigger wg_order in sharding } ``` -------------------------------- ### DecimalFormat Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for DecimalFormat, covering float and integer formatting, number to string conversion, literal representation, and JS safe formatting. ```Java 13059 DecimalFormatTest: float with customized format ``` ```Java 13060 DecimalFormatTest: integer with customized format ``` ```Java 13061 DecimalFormatTest: number as string ``` ```Java 13062 DecimalFormatTest: number in literal ``` ```Java 13063 DecimalFormatTest: number with customized format ``` ```Java 13064 DecimalFormatTest: number with js safe ``` -------------------------------- ### First Blood Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for first blood protection, covering captcha generation frequency. ```Java 13040 FirstBloodTest: captcha every time ``` ```Java 13041 FirstBloodTest: captcha between 30s ``` -------------------------------- ### Template Util Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the TemplateUtil for merging templates, including merging the first template, merging with boundaries, and merging partial tokens. Also tests boundary detection. ```Java class TemplateUtilTest { // Test for merge 1st one // Test for merge 1st one with boundary // Test for merge more partial token // Test for is boundary } ``` -------------------------------- ### JOOQ Enum Mapper Sample Test Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the mapping of Java enums to database types using JOOQ converters. ```Java TestJooqMostSelectSample: enum mapper sample ``` -------------------------------- ### OkHttp Tweak Log Interceptor Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for OkHttp Tweak Log Interceptor, focusing on logging tweaked OkHttp requests. ```Java 13051 OkHttpTweakLogInterceptorTest: print okhttp tweaking log ``` -------------------------------- ### ThisLazyCglibTest: 'thisLazy' with CGLIB Proxy Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the 'thisLazy' functionality when using CGLIB proxies. This verifies lazy initialization and method invocation through CGLIB-generated proxies. ```Java /** * Test for thisLazy with cglib */ public class ThisLazyCglibTest { // Test methods for 'thisLazy' with CGLIB proxies } ``` -------------------------------- ### Domain Extend Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for domain extension handling, including direct access and access via another host. ```Java 13043 DomainExtendTest: hostA direct ``` ```Java 13044 DomainExtendTest: hostB via hostA ``` ```Java 13045 DomainExtendTest: hostB direct ``` ```Java 13046 DomainExtendTest: hostB override hostA ``` -------------------------------- ### Wings Jackson Mapper Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests for WingsJacksonMapper, covering POJO and Lombok handling, i18n strings, XML mapping, TreeMap conversion, JSON/JAXB to Map, number formatting, URL resources, AES256 encryption, and MS style XML. ```Java 13067 WingsJacksonMapperTest: print pojo and lombok ``` ```Java 13068 WingsJacksonMapperTest: read and write object, check equal ``` ```Java 13069 WingsJacksonMapperTest: write i18n-string ``` ```Java 13070 WingsJacksonMapperTest: write i18n-result ``` ```Java 13071 WingsJacksonMapperTest: xml mapper of pojo and i18n ``` ```Java 13072 WingsJacksonMapperTest: write pojo to treemap ``` ```Java 13073 WingsJacksonMapperTest: json and jaxb to map ``` ```Java 13074 WingsJacksonMapperTest: write number as string and literal ``` ```Java 13075 WingsJacksonMapperTest: write resource as url ``` ```Java 13076 WingsJacksonMapperTest: read and write aes256 string ``` ```Java 13077 WingsJacksonMapperTest: read and write Ms style xml ``` -------------------------------- ### Schema Fulldump Manager Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the SchemaFulldumpManager for cleaning and initializing the schema, and for dumping DDL and record data to files, followed by file checks. ```Java class SchemaFulldumpManagerTest { // clean and init schema itself // dump DDL, check file // dump record, check file } ``` -------------------------------- ### Flyway Revision Scanner Tests Source: https://github.com/trydofor/professional-wings/blob/main/WingsBoot.t.md Tests the Flyway revision scanner, including handling branches, trimming paths in comments, using helpers and builders, and formatting revisions. ```Java class FlywaveRevisionScannerTest { // Test for branch // Test for trim path in comment // Test for helper and builder // Test for format revision } ```