Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed Jun 9, 2024
1 parent 63d687c commit a24bbf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 277 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
import schemacrawler.test.utility.BaseAdditionalDatabaseTest;
import schemacrawler.test.utility.DatabaseTestUtility;
import schemacrawler.test.utility.HeavyDatabaseTest;
import schemacrawler.tools.command.text.schema.options.SchemaTextOptions;
import schemacrawler.tools.command.text.schema.options.SchemaTextOptionsBuilder;
import schemacrawler.tools.executable.SchemaCrawlerExecutable;

@HeavyDatabaseTest("mysql")
Expand All @@ -85,8 +87,13 @@ public void columnWithEnum() throws Exception {
final SchemaCrawlerOptions schemaCrawlerOptions =
DatabaseTestUtility.schemaCrawlerOptionsWithMaximumSchemaInfoLevel;

final SchemaTextOptionsBuilder textOptionsBuilder = SchemaTextOptionsBuilder.builder();
textOptionsBuilder.noInfo();
final SchemaTextOptions textOptions = textOptionsBuilder.toOptions();

final SchemaCrawlerExecutable executable = new SchemaCrawlerExecutable("details");
executable.setSchemaCrawlerOptions(schemaCrawlerOptions);
executable.setAdditionalConfiguration(SchemaTextOptionsBuilder.builder(textOptions).toConfig());

assertThat(
outputOf(executableExecution(getDataSource(), executable)),
Expand Down
277 changes: 0 additions & 277 deletions schemacrawler-mysql/src/test/resources/testColumnWithEnum.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@


System Information
========================================================================

generated by SchemaCrawler 16.21.2
generated on 2024-06-08 22:51:34



Tables
========================================================================

Expand All @@ -19,272 +11,3 @@ test.shirts [table]
size ENUM(6)
'small', medium', large'



Data Types
========================================================================

BIGINT [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

BIGINT UNSIGNED [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

BINARY [data type]
defined with (M)
nullable
not auto-incrementable
searchable

BIT [data type]
defined with [(M)]
nullable
not auto-incrementable
searchable

BLOB [data type]
defined with [(M)]
nullable
not auto-incrementable
searchable

BOOL [data type]
defined with no parameters
nullable
auto-incrementable
searchable

CHAR [data type]
defined with [(M)] [CHARACTER SET charset_name] [COLLATE collation_name]
nullable
not auto-incrementable
searchable

DATE [data type]
defined with no parameters
nullable
not auto-incrementable
searchable

DATETIME [data type]
defined with [(fsp)]
nullable
not auto-incrementable
searchable

DECIMAL [data type]
defined with [(M[,D])] [UNSIGNED] [ZEROFILL]
nullable
not auto-incrementable
searchable

DOUBLE [data type]
defined with [(M,D)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

DOUBLE PRECISION [data type]
defined with [(M,D)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

DOUBLE PRECISION UNSIGNED [data type]
defined with [(M,D)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

DOUBLE UNSIGNED [data type]
defined with [(M,D)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

ENUM [data type]
defined with ('value1','value2',...) [CHARACTER SET charset_name] [COLLATE collation_name]
nullable
not auto-incrementable
searchable

FLOAT [data type]
defined with [(M,D)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

INT [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

INTEGER [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

INTEGER UNSIGNED [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

INT UNSIGNED [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

LONGBLOB [data type]
defined with no parameters
nullable
not auto-incrementable
searchable

LONGTEXT [data type]
defined with [CHARACTER SET charset_name] [COLLATE collation_name]
nullable
not auto-incrementable
searchable

LONG VARBINARY [data type]
defined with no parameters
nullable
not auto-incrementable
searchable

LONG VARCHAR [data type]
defined with [CHARACTER SET charset_name] [COLLATE collation_name]
nullable
not auto-incrementable
searchable

MEDIUMBLOB [data type]
defined with no parameters
nullable
not auto-incrementable
searchable

MEDIUMINT [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

MEDIUMINT UNSIGNED [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

MEDIUMTEXT [data type]
defined with [CHARACTER SET charset_name] [COLLATE collation_name]
nullable
not auto-incrementable
searchable

NUMERIC [data type]
defined with [(M[,D])] [UNSIGNED] [ZEROFILL]
nullable
not auto-incrementable
searchable

REAL [data type]
defined with [(M,D)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

SET [data type]
defined with ('value1','value2',...) [CHARACTER SET charset_name] [COLLATE collation_name]
nullable
not auto-incrementable
searchable

SMALLINT [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

SMALLINT UNSIGNED [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

TEXT [data type]
defined with [(M)] [CHARACTER SET charset_name] [COLLATE collation_name]
nullable
not auto-incrementable
searchable

TIME [data type]
defined with [(fsp)]
nullable
not auto-incrementable
searchable

TIMESTAMP [data type]
defined with [(fsp)]
nullable
not auto-incrementable
searchable

TINYBLOB [data type]
defined with no parameters
nullable
not auto-incrementable
searchable

TINYINT [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

TINYINT UNSIGNED [data type]
defined with [(M)] [UNSIGNED] [ZEROFILL]
nullable
auto-incrementable
searchable

TINYTEXT [data type]
defined with [CHARACTER SET charset_name] [COLLATE collation_name]
nullable
not auto-incrementable
searchable

VARBINARY [data type]
defined with (M)
nullable
not auto-incrementable
searchable

VARCHAR [data type]
defined with (M) [CHARACTER SET charset_name] [COLLATE collation_name]
nullable
not auto-incrementable
searchable

VECTOR [data type]
defined with [(M)]
nullable
not auto-incrementable
searchable

YEAR [data type]
defined with [(4)]
nullable
not auto-incrementable
searchable

0 comments on commit a24bbf6

Please sign in to comment.