You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/03/15 09:58:56 UTC

[GitHub] [shardingsphere] tuichenchuxin opened a new issue #16100: Add unit test for ShardingInsertValuesToken#toString

tuichenchuxin opened a new issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100


   Hi community,
   
   This issue is for [OpenForce](https://github.com/apache/shardingsphere/discussions/12683#discussioncomment-2139441)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] shreya024 commented on issue #16100: Add unit test for ShardingInsertValuesToken#toString

Posted by GitBox <gi...@apache.org>.
shreya024 commented on issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100#issuecomment-1072529841


   > Welcome @shreya024, glad see you again.
   
   Thank you,I am working on the issue.Kindly guide me how to access/modify the result located inside toString method from test class.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] shreya024 commented on issue #16100: Add unit test for ShardingInsertValuesToken#toString

Posted by GitBox <gi...@apache.org>.
shreya024 commented on issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100#issuecomment-1072910054


   > > > Welcome @shreya024, glad see you again.
   > > 
   > > 
   > > Thank you,I am working on the issue.Kindly guide me how to access/modify the result located inside toString method from test class.
   > 
   > @shreya024 Of course, You could create a ShardingInsertValuesToken instance first, and then add some insertValues by `getInsertValues().add(insertValueToken)` method.
   > 
   > After complete these tasks, you can test `toString` method. It should be noted that this method needs to pass in a RouteUnit, which is result returned by ShardingSphere routing engine, which records the relationship between logical data source and real data source, as well as logical table and real table.
   
   Thank you.Yes,I have done these but I'm getting a java.lang.StringIndexOutOfBoundsException: start -2, end 0, length 0 probably because StringBuilder result is always empty.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] shreya024 commented on issue #16100: Add unit test for ShardingInsertValuesToken#toString

Posted by GitBox <gi...@apache.org>.
shreya024 commented on issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100#issuecomment-1072025519


   Hi, I am Shreya, a contributor to OpenForce 2022. I would like to work on this issue. I would be making a PR as soon as I am done with resolving the issue. Thank you


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu commented on issue #16100: Add unit test for ShardingInsertValuesToken#toString

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100#issuecomment-1072902039


   > > Welcome @shreya024, glad see you again.
   > 
   > Thank you,I am working on the issue.Kindly guide me how to access/modify the result located inside toString method from test class.
   
   @shreya024 Of course, You could create a ShardingInsertValuesToken instance first, and then add some insertValues by `getInsertValues().add(insertValueToken)` method. 
   
   After complete these tasks, you can test `toString` method. It should be noted that this method needs to pass in a RouteUnit, which is result returned by ShardingSphere routing engine, which records the relationship between logical data source and real data source, as well as logical table and real table.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] shreya024 commented on issue #16100: Add unit test for ShardingInsertValuesToken#toString

Posted by GitBox <gi...@apache.org>.
shreya024 commented on issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100#issuecomment-1072025519


   Hi, I am Shreya, a contributor to OpenForce 2022. I would like to work on this issue. I would be making a PR as soon as I am done with resolving the issue. Thank you


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu commented on issue #16100: Add unit test for ShardingInsertValuesToken#toString

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100#issuecomment-1072027669


   Welcome @shreya024, glad see you again. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu closed issue #16100: Add unit test for ShardingInsertValuesToken#toString

Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu commented on issue #16100: Add unit test for ShardingInsertValuesToken#toString

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100#issuecomment-1072027669


   Welcome @shreya024, glad see you again. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] shreya024 edited a comment on issue #16100: Add unit test for ShardingInsertValuesToken#toString

Posted by GitBox <gi...@apache.org>.
shreya024 edited a comment on issue #16100:
URL: https://github.com/apache/shardingsphere/issues/16100#issuecomment-1072910054


   > > > Welcome @shreya024, glad see you again.
   > > 
   > > 
   > > Thank you,I am working on the issue.Kindly guide me how to access/modify the result located inside toString method from test class.
   > 
   > @shreya024 Of course, You could create a ShardingInsertValuesToken instance first, and then add some insertValues by `getInsertValues().add(insertValueToken)` method.
   > 
   > After complete these tasks, you can test `toString` method. It should be noted that this method needs to pass in a RouteUnit, which is result returned by ShardingSphere routing engine, which records the relationship between logical data source and real data source, as well as logical table and real table.
   
   Okay thank you so much


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org