-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #499 from GwtMaterialDesign/release_2.0
Preparation for 2.0-rc2 release
- Loading branch information
Showing
11 changed files
with
147 additions
and
23 deletions.
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
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
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
39 changes: 39 additions & 0 deletions
39
gwt-material/src/test/java/gwt/material/design/client/ui/base/helper/ColorHelperTest.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,39 @@ | ||
/* | ||
* #%L | ||
* GwtMaterial | ||
* %% | ||
* Copyright (C) 2015 - 2016 GwtMaterialDesign | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
package gwt.material.design.client.ui.base.helper; | ||
|
||
import gwt.material.design.client.base.helper.ColorHelper; | ||
import gwt.material.design.client.constants.Color; | ||
import junit.framework.TestCase; | ||
|
||
/** | ||
* Test case for {@link gwt.material.design.client.base.helper.ColorHelper}. | ||
*/ | ||
public class ColorHelperTest extends TestCase { | ||
|
||
public ColorHelperTest() { | ||
checkFromStyleName(); | ||
} | ||
|
||
private void checkFromStyleName() { | ||
assertEquals(Color.PINK_LIGHTEN_1, | ||
ColorHelper.fromStyleName("pink lighten-1", Color.class, Color.DEFAULT)); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
gwt-material/src/test/java/gwt/material/design/client/ui/base/helper/EnumHelperTest.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,47 @@ | ||
/* | ||
* #%L | ||
* GwtMaterial | ||
* %% | ||
* Copyright (C) 2015 - 2016 GwtMaterialDesign | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
package gwt.material.design.client.ui.base.helper; | ||
|
||
import gwt.material.design.client.base.helper.ColorHelper; | ||
import gwt.material.design.client.base.helper.EnumHelper; | ||
import gwt.material.design.client.base.helper.StyleHelper; | ||
import gwt.material.design.client.constants.Color; | ||
import junit.framework.TestCase; | ||
|
||
/** | ||
* Test case for {@link EnumHelper}. | ||
*/ | ||
public class EnumHelperTest extends TestCase { | ||
|
||
public EnumHelperTest() { | ||
checkFromStyleName(); | ||
} | ||
|
||
private void checkFromStyleName() { | ||
assertEquals(Color.PINK, | ||
EnumHelper.fromStyleName("pink", Color.class, Color.DEFAULT)); | ||
|
||
assertEquals(Color.PINK, | ||
EnumHelper.fromStyleName("pink lighten-1", Color.class, Color.DEFAULT)); | ||
|
||
assertEquals(Color.PINK_LIGHTEN_1, | ||
EnumHelper.fromStyleName("pink lighten-1", Color.class, Color.DEFAULT, true)); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<groupId>com.github.gwtmaterialdesign</groupId> | ||
<artifactId>gwt-material-parent</artifactId> | ||
<packaging>pom</packaging> | ||
<version>2.0-SNAPSHOT</version> | ||
<version>2.0-rc2</version> | ||
|
||
<modules> | ||
<module>gwt-material</module> | ||
|
@@ -63,7 +63,7 @@ | |
<connection>scm:git:[email protected]:GwtMaterialDesign/gwt-material.git</connection> | ||
<developerConnection>scm:git:[email protected]:GwtMaterialDesign/gwt-material.git</developerConnection> | ||
<url>http://github.com/GwtMaterialDesign/gwt-material</url> | ||
<tag>v2.0-SNAPSHOT</tag> | ||
<tag>v2.0-rc2</tag> | ||
</scm> | ||
|
||
<licenses> | ||
|