Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(28)

Side by Side Diff: test/com/google/gwt/inject/client/binding/ConstantBindingTest.java

Issue 90085: Fixed enum binding support (issue #49) (Closed) SVN Base: http://google-gin.googlecode.com/svn/trunk/
Patch Set: Using getEnclosingClass Created 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2008 Google Inc. 2 * Copyright 2008 Google Inc.
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of 5 * use this file except in compliance with the License. You may obtain a copy of
6 * the License at 6 * the License at
7 * 7 *
8 * http://www.apache.org/licenses/LICENSE-2.0 8 * http://www.apache.org/licenses/LICENSE-2.0
9 * 9 *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 public void testShort() { 60 public void testShort() {
61 assertEquals(FruitGinModule.LEAVES, injector.getLeaves()); 61 assertEquals(FruitGinModule.LEAVES, injector.getLeaves());
62 } 62 }
63 63
64 public void testString() { 64 public void testString() {
65 assertEquals(FruitGinModule.NAME, injector.getName()); 65 assertEquals(FruitGinModule.NAME, injector.getName());
66 } 66 }
67 67
68 public void testEnum() { 68 public void testEnum() {
69 assertEquals(FruitGinModule.COLOR, injector.getColor()); 69 assertEquals(FruitGinModule.COLOR, injector.getColor());
70 }
71
72 public void testInnerEnum() {
73 assertEquals(FruitGinModule.FAMILY, injector.getFamily());
70 } 74 }
71 75
72 public String getModuleName() { 76 public String getModuleName() {
73 return "com.google.gwt.inject.InjectTest"; 77 return "com.google.gwt.inject.InjectTest";
74 } 78 }
75 } 79 }
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r497