input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
testGetParametersWithEmptyFields ( ) { org . lnu . is . domain . department . specialty . DepartmentSpecialty entity = new org . lnu . is . domain . department . specialty . DepartmentSpecialty ( ) ; java . util . Map < java . lang . String , java . lang . Object > expected = new java . util . HashMap < java . lang . S...
org . junit . Assert . assertEquals ( expected , actual )
testIdListToBytesAndBytesToIdList ( ) { java . util . List < java . lang . String > idList = com . google . common . collect . Lists . newArrayList ( "syn123" , "456" ) ; byte [ ] bytes = org . sagebionetworks . repo . model . dbo . dao . NodeUtils . createByteForIdList ( idList ) ; java . util . List < java . lang . S...
org . junit . Assert . assertEquals ( expected , results )
toString_format_nullformat ( ) { com . psddev . dari . util . Date input = new java . text . SimpleDateFormat ( "yyyy/MM/dd<sp>HH:mm:ss" ) . parse ( "2011/05/12<sp>12:45:27" ) ; "<AssertPlaceHolder>" ; } toString ( java . util . Date , java . lang . String ) { return date == null ? null : com . psddev . dari . util . D...
org . junit . Assert . assertEquals ( null , com . psddev . dari . util . DateUtils . toString ( input , null ) )
testRelatieMetNamenReeksEnGeenVoornamen ( ) { final nl . bzk . brp . model . hisvolledig . momentview . kern . FamilierechtelijkeBetrekkingView familierechtelijkeBetrekkingView = bouwFamilierechtelijkeBetrekking ( nl . bzk . brp . bijhouding . business . regels . impl . gegevenset . persoon . samengesteldenaam . BRAL05...
org . junit . Assert . assertTrue ( berichtEntiteits . isEmpty ( ) )
testGetProviderName2 ( ) { java . lang . String name = promptProvider . getProviderName ( ) ; "<AssertPlaceHolder>" ; } getProviderName ( ) { return "Stratio<sp>Decision" ; }
org . junit . Assert . assertEquals ( "Stratio<sp>Decision" , name )
getAccessLevelWithOwner ( ) { org . phenotips . data . Patient p = mock ( org . phenotips . data . Patient . class ) ; org . phenotips . data . permissions . internal . EntityAccessHelper helper = mock ( org . phenotips . data . permissions . internal . EntityAccessHelper . class ) ; org . phenotips . data . permission...
org . junit . Assert . assertSame ( owner , pa . getAccessLevel ( ) )
testApply ( ) { fiji . plugin . trackmate . graph . Function2 < int [ ] , int [ ] > function = new fiji . plugin . trackmate . graph . Function2 < int [ ] , int [ ] > ( ) { @ fiji . plugin . trackmate . graph . Override public void compute ( int [ ] input1 , int [ ] input2 , int [ ] output ) { output [ 0 ] = ( input1 [...
org . junit . Assert . assertEquals ( 7 , val [ 0 ] )
getFieldByUuid_shouldFindObjectGivenValidUuid ( ) { java . lang . String uuid = "db016b7d-39a5-4911-89da-0eefbfef7cb2" ; org . openmrs . Field field = org . openmrs . api . context . Context . getFormService ( ) . getFieldByUuid ( uuid ) ; "<AssertPlaceHolder>" ; } getFieldId ( ) { return fieldId ; }
org . junit . Assert . assertEquals ( 1 , ( ( int ) ( field . getFieldId ( ) ) ) )
samplesDistCorrectly ( ) { java . util . List < quickml . data . instances . Instance < quickml . data . AttributesMap , java . io . Serializable > > instances = getInstances ( ) ; for ( int i = 0 ; i < 10 ; i ++ ) { instances . addAll ( getInstances ( ) ) ; } quickml . supervised . inspection . NumericDistributionSamp...
org . junit . Assert . assertTrue ( ( ( ( actualDistribution . get ( bin ) . doubleValue ( ) ) < ( ( sampledDistribution . get ( bin ) . doubleValue ( ) ) + tolerance ) ) && ( ( actualDistribution . get ( bin ) . doubleValue ( ) ) > ( ( sampledDistribution . get ( bin ) . doubleValue ( ) ) - tolerance ) ) ) )
notNotTrue ( ) { org . openscience . cdk . isomorphism . matchers . Expr actual = org . openscience . cdk . smarts . SmartsExprReadTest . getAtomExpr ( "[!!*]" ) ; org . openscience . cdk . isomorphism . matchers . Expr expected = org . openscience . cdk . smarts . SmartsExprReadTest . expr ( org . openscience . cdk . ...
org . junit . Assert . assertThat ( actual , org . hamcrest . CoreMatchers . is ( expected ) )
testGetClusterType ( ) { final com . allanbank . mongodb . MongoClientConfiguration config = new com . allanbank . mongodb . MongoClientConfiguration ( new java . net . InetSocketAddress ( "127.0.0.1" , 27017 ) ) ; final com . allanbank . mongodb . client . connection . proxy . ProxiedConnectionFactory mockFactory = cr...
org . junit . Assert . assertEquals ( ClusterType . STAND_ALONE , myTestFactory . getClusterType ( ) )
testValidateSearchIndexSizeValidationFails ( ) { when ( indexFunctionsDao . getNumberOfTypesInIndex ( org . finra . herd . service . impl . SEARCH_INDEX_NAME , org . finra . herd . service . impl . SEARCH_INDEX_DOCUMENT_TYPE ) ) . thenReturn ( 1L ) ; boolean response = searchIndexHelperServiceImpl . validateSearchIndex...
org . junit . Assert . assertFalse ( response )
testLong ( ) { a = create ( 10 , 5 ) ; int p = a . malloc ( ) ; a . setLong ( p , 0 , Long . MAX_VALUE ) ; "<AssertPlaceHolder>" ; a . free ( p ) ; } getLong ( int , int ) { return m_parent . getLong ( pointer , ( ( m_baseOffset ) + offset_in_data ) ) ; }
org . junit . Assert . assertEquals ( Long . MAX_VALUE , a . getLong ( p , 0 ) )
bsnOk ( ) { final nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijst dbPersoonslijst = new nl . bzk . migratiebrp . conversie . model . brp . BrpPersoonslijstBuilder ( ) . build ( ) ; setup ( java . util . Collections . singletonList ( dbPersoonslijst ) , java . util . Collections . singletonList ( dbP...
org . junit . Assert . assertTrue ( subject . controleer ( new nl . bzk . migratiebrp . synchronisatie . runtime . service . synchronisatie . verwerker . context . VerwerkingsContext ( null , null , null , null ) ) )
testResourceManagerAdded ( ) { final org . apache . oozie . fluentjob . api . action . PigActionBuilder builder = getBuilderInstance ( ) ; builder . withResourceManager ( org . apache . oozie . fluentjob . api . action . TestPigActionBuilder . RESOURCE_MANAGER ) ; final org . apache . oozie . fluentjob . api . action ....
org . junit . Assert . assertEquals ( org . apache . oozie . fluentjob . api . action . TestPigActionBuilder . RESOURCE_MANAGER , action . getResourceManager ( ) )
receiveMessageSucceeds ( ) { baseExpectations ( ) ; openExpectations ( ) ; new tests . unit . com . microsoft . azure . sdk . iot . device . transport . mqtt . NonStrictExpectations ( ) { { mockDeviceMethod . receive ( ) ; result = null ; mockDeviceTwin . receive ( ) ; result = null ; mockDeviceMessaging . receive ( ) ...
org . junit . Assert . assertEquals ( expectedMessageBody [ i ] , actualMessageBody [ i ] )
testGetTextParagraphs_1 ( ) { final java . lang . String input = "<p>ira<sp>is<sp>a<sp>dog</p>\n<p><sp>she<sp>barks<sp>a<sp>lot</p>" ; final java . lang . String [ ] expected = new java . lang . String [ ] { "<p>ira<sp>is<sp>a<sp>dog</p>" , "<p><sp>she<sp>barks<sp>a<sp>lot</p>" } ; final java . lang . String [ ] result...
org . junit . Assert . assertArrayEquals ( expected , result )
testUpdateSinkTotalGroups ( ) { config . setUserNameAttribute ( "sAMAccountName" ) ; config . setUserSearchBase ( "cn=users,DC=ranger,DC=qe,DC=hortonworks,DC=com" ) ; config . setUserSearchFilter ( "" ) ; config . setGroupSearchBase ( "OU=Groups,DC=ranger,DC=qe,DC=hortonworks,DC=com" ) ; config . setGroupSearchFilter (...
org . junit . Assert . assertEquals ( 10 , sink . getTotalGroups ( ) )
testConstructorNoParamsSuccessful ( ) { japicmp . filter . JavadocLikeBehaviorFilter filter = new japicmp . filter . JavadocLikeBehaviorFilter ( "japicmp.Test#Test()" ) ; javassist . ClassPool classPool = new javassist . ClassPool ( ) ; classPool . appendSystemPath ( ) ; javassist . CtClass ctClass = japicmp . util . C...
org . junit . Assert . assertThat ( filter . matches ( ctConstructor ) , org . hamcrest . core . Is . is ( true ) )
testParseNull ( ) { "<AssertPlaceHolder>" ; } convertToActiveMQFilterString ( java . lang . String ) { if ( selectorString == null ) { return null ; } java . lang . String filterString = org . apache . activemq . artemis . utils . SelectorTranslator . parse ( selectorString , "JMSDeliveryMode" , "JMSExpiration" 5 ) ; f...
org . junit . Assert . assertNull ( org . apache . activemq . artemis . utils . SelectorTranslator . convertToActiveMQFilterString ( null ) )
testGetType ( ) { org . mockito . Mockito . when ( mapper . getType ( org . mockito . Matchers . any ( org . slc . sli . modeling . tools . xmigen . Identifier . class ) ) ) . thenReturn ( classType ) ; org . slc . sli . modeling . tools . xmigen . Type type = adapter . getType ( identifier ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertEquals ( classType , type )
testBuildWithDisabledSecurityConstraintWithOrderBy ( ) { unit . setSecurity ( false ) ; org . lnu . is . domain . employee . type . EmployeeType context = new org . lnu . is . domain . employee . type . EmployeeType ( ) ; org . lnu . is . pagination . OrderBy orderBy1 = new org . lnu . is . pagination . OrderBy ( "abbr...
org . junit . Assert . assertEquals ( expectedQuery , actualQuery )
anInvalidExistingPasswordShouldNotPreventUserUpdate ( ) { org . nuxeo . ecm . core . api . DocumentModel user = getUser ( "testUser" ) ; user = userManager . createUser ( user ) ; org . nuxeo . ecm . directory . api . DirectoryService dirService = org . nuxeo . runtime . api . Framework . getService ( org . nuxeo . ecm...
org . junit . Assert . assertNotNull ( userManager . getPrincipal ( "testUser" ) )
tGetPluginClasses ( ) { java . util . List < java . lang . Class < ? extends atunit . spi . plugin . AtUnitPlugin > > expectedPlugins = com . google . common . collect . Lists . newArrayList ( ) ; expectedPlugins . add ( atunit . core . PluginUtilsTests . DummyPlugin1 . class ) ; expectedPlugins . add ( atunit . core ....
org . junit . Assert . assertEquals ( expectedPlugins , plugins )
addPropertyOKDate ( ) { testedStore . createProperty ( new org . ff4j . property . PropertyDate ( "ddateee" , new java . util . Date ( ) ) ) ; "<AssertPlaceHolder>" ; } existProperty ( java . lang . String ) { org . ff4j . utils . Util . assertHasLength ( name ) ; return propertySource . containsProperty ( name ) ; }
org . junit . Assert . assertTrue ( testedStore . existProperty ( "ddateee" ) )
testEncodeExecuteJavaScript ( ) { com . vaadin . flow . dom . Element element = com . vaadin . flow . dom . ElementFactory . createDiv ( ) ; com . vaadin . flow . component . internal . UIInternals . JavaScriptInvocation invocation1 = new com . vaadin . flow . component . internal . UIInternals . JavaScriptInvocation (...
org . junit . Assert . assertTrue ( com . vaadin . flow . internal . JsonUtils . jsonEquals ( expectedJson , json ) )
testSetInboundPassthruMode ( ) { gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry registry = gov . hhs . fha . nhinc . configuration . jmx . PassthruMXBeanRegistry . getInstance ( ) ; gov . hhs . fha . nhinc . configuration . IConfiguration . serviceEnum serviceName = gov . hhs . fha . nhinc . con...
org . junit . Assert . assertEquals ( true , passthru )
validate_shouldPassValidationIfFieldLengthsAreCorrect ( ) { org . openmrs . scheduler . TaskDefinition def = new org . openmrs . scheduler . TaskDefinition ( ) ; def . setName ( "Chores" ) ; def . setRepeatInterval ( 3600000L ) ; def . setTaskClass ( "org.openmrs.scheduler.tasks.HelloWorldTask" ) ; def . setDescription...
org . junit . Assert . assertFalse ( errors . hasErrors ( ) )
testFileCreationExceptionString ( ) { java . lang . String expectedMessage = "some<sp>message" ; java . lang . String actualMessage ; try { throw new de . metanome . algorithm_integration . algorithm_execution . FileCreationException ( expectedMessage ) ; } catch ( de . metanome . algorithm_integration . algorithm_exec...
org . junit . Assert . assertEquals ( expectedMessage , actualMessage )
testEscapeBackslash4 ( ) { final java . io . StringWriter sw = new java . io . StringWriter ( ) ; try ( final org . apache . commons . csv . CSVPrinter printer = new org . apache . commons . csv . CSVPrinter ( sw , CSVFormat . DEFAULT . withQuote ( org . apache . commons . csv . CSVPrinterTest . QUOTE_CH ) ) ) { printe...
org . junit . Assert . assertEquals ( "\\\\" , sw . toString ( ) )
showLogs_withShowLogsTrue ( ) { final io . fabric8 . maven . docker . service . helper . StartContainerExecutor executor = new io . fabric8 . maven . docker . service . helper . StartContainerExecutor . Builder ( ) . showLogs ( "true" ) . build ( ) ; final boolean actual = executor . showLogs ( ) ; "<AssertPlaceHolder>...
org . junit . Assert . assertTrue ( actual )
testPayloadOffset ( ) { "<AssertPlaceHolder>" ; } payloadOffset ( byte ) { return ( io . jafka . message . Message . crcOffset ( magic ) ) + ( io . jafka . message . Message . CrcLength ) ; }
org . junit . Assert . assertEquals ( 6 , io . jafka . message . Message . payloadOffset ( ( ( byte ) ( 1 ) ) ) )
testParseSimpleWithDecimalsTrunc ( ) { java . lang . String source = ( ( ( ( ( "{{1" + ( getDecimalCharacter ( ) ) ) + "2323,1" ) + ( getDecimalCharacter ( ) ) ) + "4343,1" ) + ( getDecimalCharacter ( ) ) ) + "6333}}" ; org . hipparchus . linear . RealMatrix expected = org . hipparchus . linear . MatrixUtils . createRe...
org . junit . Assert . assertEquals ( expected , actual )
testGetHttpURLFromHeaderUri ( ) { org . apache . camel . Endpoint endpoint = org . mockito . Mockito . mock ( org . apache . camel . Endpoint . class ) ; org . apache . camel . Exchange exchange = org . mockito . Mockito . mock ( org . apache . camel . Exchange . class ) ; org . apache . camel . Message message = org ....
org . junit . Assert . assertEquals ( org . apache . camel . opentracing . decorators . AbstractHttpSpanDecoratorTest . TEST_URI , decorator . getHttpURL ( exchange , endpoint ) )
testToJsonNull ( ) { com . fasterxml . jackson . databind . node . JsonNodeFactory jsonNodeFactory = new com . fasterxml . jackson . databind . node . JsonNodeFactory ( true ) ; com . fasterxml . jackson . databind . JsonNode jsonNode = bigDecimalType . toJson ( jsonNodeFactory , null ) ; "<AssertPlaceHolder>" ; } toJs...
org . junit . Assert . assertNotNull ( jsonNode )
assertGetAllTasksWhenRootNodeHasNoChild ( ) { when ( regCenter . isExisted ( ReadyNode . ROOT ) ) . thenReturn ( true ) ; when ( regCenter . getChildrenKeys ( ReadyNode . ROOT ) ) . thenReturn ( java . util . Collections . < java . lang . String > emptyList ( ) ) ; "<AssertPlaceHolder>" ; verify ( regCenter ) . isExist...
org . junit . Assert . assertTrue ( readyService . getAllReadyTasks ( ) . isEmpty ( ) )
testOneOfTwo ( ) { org . apache . tomcat . websocket . server . UriTemplate t = new org . apache . tomcat . websocket . server . UriTemplate ( "/{a}/{b}" ) ; java . util . Map < java . lang . String , java . lang . String > result = t . match ( new org . apache . tomcat . websocket . server . UriTemplate ( "/foo" ) ) ;...
org . junit . Assert . assertNull ( result )
testEvaluateTwoIndexTwoVarOrder2 ( ) { final java . lang . String indexSparqlString = "" + ( ( ( ( "SELECT<sp>?e<sp>?l<sp>?c<sp>" + "{" ) + "<sp>?e<sp>a<sp>?c<sp>.<sp>" ) + "<sp>?e<sp><http://www.w3.org/2000/01/rdf-schema#label><sp>?l<sp>" ) + "}" ) ; final java . lang . String indexSparqlString2 = "" + ( ( ( ( "SELECT...
org . junit . Assert . assertEquals ( true , ipv . isValid ( tup ) )
testKit ( ) { final uk . ac . bbsrc . tgac . miso . core . data . KitImpl kit = new uk . ac . bbsrc . tgac . miso . core . data . KitImpl ( ) { private static final long serialVersionUID = 1L ; } ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( kit )
testGetTableMetrics ( ) { org . apache . hadoop . hbase . regionserver . MetricsTableSource oneTbl = org . apache . hadoop . hbase . CompatibilitySingletonFactory . getInstance ( org . apache . hadoop . hbase . regionserver . MetricsRegionServerSourceFactory . class ) . createTable ( "ONETABLE" , new org . apache . had...
org . junit . Assert . assertEquals ( "ONETABLE" , oneTbl . getTableName ( ) )
testDisambiguationPage ( ) { edu . jhu . nlp . wikipedia . WikiTextParser wtp = new edu . jhu . nlp . wikipedia . WikiTextParser ( wtext ) ; "<AssertPlaceHolder>" ; } isDisambiguationPage ( ) { return ( disambCatPattern . matcher ( title ) . matches ( ) ) || ( wikiTextParser . isDisambiguationPage ( ) ) ; }
org . junit . Assert . assertTrue ( wtp . isDisambiguationPage ( ) )
equals_should_return_true_on_different_menus_with_same_content ( ) { org . bonitasoft . engine . business . application . xml . ApplicationMenuNode menu1 = org . bonitasoft . engine . business . application . xml . ApplicationNodeBuilder . newMenu ( "Menu" , "Page" ) . havingMenu ( org . bonitasoft . engine . business ...
org . junit . Assert . assertTrue ( menu1 . equals ( menu2 ) )
testSetInterfaceIpAddress ( ) { defaultIsisInterface . setInterfaceIpAddress ( ip4Address ) ; resultIPv4Addr = defaultIsisInterface . interfaceIpAddress ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( resultIPv4Addr , org . hamcrest . CoreMatchers . is ( ip4Address ) )
testGetCreds ( ) { org . apache . hadoop . security . UserGroupInformation ugi = org . apache . hadoop . security . UserGroupInformation . createRemoteUser ( "someone" ) ; org . apache . hadoop . io . Text service = new org . apache . hadoop . io . Text ( "service" ) ; org . apache . hadoop . security . token . Token <...
org . junit . Assert . assertSame ( t3 , creds . getToken ( service ) )
shouldReturnAnnotationsOnClassGivenClass ( ) { java . lang . annotation . Annotation [ ] annotations = new java . lang . annotation . Annotation [ ] { mock ( org . flips . annotation . FlipOff . class ) } ; java . lang . Class clazz = org . flips . fixture . TestClientFlipAnnotationsWithAnnotationsOnMethod . class ; or...
org . junit . Assert . assertEquals ( annotations , annotationsOnMethod )
testEquals_eq ( ) { com . google . appengine . api . users . User user1 = new com . google . appengine . api . users . User ( "abc" , "xyz" ) ; com . google . appengine . api . users . User user2 = new com . google . appengine . api . users . User ( "abc" , "xyz" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Obj...
org . junit . Assert . assertTrue ( user1 . equals ( user2 ) )
testParseWithNoQueryParams ( ) { com . ocpsoft . pretty . faces . config . mapping . UrlMapping mapping = config . getMappingById ( "7" ) ; java . util . List < com . ocpsoft . pretty . faces . config . mapping . QueryParameter > params = mapping . getQueryParams ( ) ; "<AssertPlaceHolder>" ; } getQueryParams ( ) { ret...
org . junit . Assert . assertEquals ( 0 , params . size ( ) )
testFilterCastAny ( ) { final org . apache . calcite . tools . RelBuilder builder = org . apache . calcite . tools . RelBuilder . create ( org . apache . calcite . test . RelBuilderTest . config ( ) . build ( ) ) ; final org . apache . calcite . rel . type . RelDataType anyType = builder . getTypeFactory ( ) . createSq...
org . junit . Assert . assertThat ( root , org . apache . calcite . test . Matchers . hasTree ( expected ) )
testParseDateWithLeniency ( ) { final java . util . GregorianCalendar cal = new java . util . GregorianCalendar ( 1998 , 6 , 30 ) ; final java . lang . String dateStr = "02<sp>942,<sp>1996" ; final java . lang . String [ ] parsers = new java . lang . String [ ] { "MM<sp>DDD,<sp>yyyy" } ; java . util . Date date = org ....
org . junit . Assert . assertEquals ( cal . getTime ( ) , date )
testConfigureCollectionPrefixIsEncodedNewEncoding ( ) { System . out . println ( ( ( getTestTraceHead ( "[NGSIMongoBaseSink.configure]" ) ) + "--------<sp>Configured<sp>'collection_prefix'<sp>is<sp>encoded<sp>when<sp>having<sp>forbidden<sp>characters" ) ) ; java . lang . String collectionPrefix = "this\\is/a$prefix.wit...
org . junit . Assert . assertEquals ( expectedCollectionPrefix , sink . collectionPrefix )
testAnnotatedInstance ( ) { org . glassfish . tyrus . server . Server server = startServer ( org . glassfish . tyrus . test . standard_config . bean . TestEndpoint . class ) ; final javax . websocket . ClientEndpointConfig configuration = ClientEndpointConfig . Builder . create ( ) . build ( ) ; org . glassfish . tyrus...
org . junit . Assert . assertEquals ( "hello" , org . glassfish . tyrus . test . standard_config . AnnotatedClientTest . receivedMessage )
setTransactionId_anInteger_transactionIdIsSet ( ) { java . lang . Integer anInteger = 42 ; request . setTransactionId ( anInteger ) ; "<AssertPlaceHolder>" ; } getTransactionId ( ) { return transactionId ; }
org . junit . Assert . assertThat ( request . getTransactionId ( ) , org . hamcrest . CoreMatchers . equalTo ( anInteger ) )
testContent ( ) { final com . google . jenkins . plugins . dsl . YamlAction action = com . google . jenkins . plugins . dsl . YamlAction . of ( project ) ; action . setYaml ( com . google . jenkins . plugins . dsl . YamlActionTest . CONTENT ) ; "<AssertPlaceHolder>" ; } getYaml ( ) { return yaml ; }
org . junit . Assert . assertEquals ( com . google . jenkins . plugins . dsl . YamlActionTest . CONTENT , action . getYaml ( ) )
testUnqualifiedRuleScopeAttribute ( ) { java . lang . String action = "$n;" ; java . lang . String expecting = "$n;" ; org . antlr . test . ErrorQueue equeue = new org . antlr . test . ErrorQueue ( ) ; org . antlr . test . ErrorManager . setErrorListener ( equeue ) ; org . antlr . test . Grammar g = new org . antlr . t...
org . junit . Assert . assertEquals ( expecting , found )
testConfiguracaoRootDirNull ( ) { br . com . senacrs . alp . aulas . trabalho12 . Configuracao obj = null ; try { obj = new br . com . senacrs . alp . aulas . trabalho12 . Configuracao ( null , 123 ) ; org . junit . Assert . fail ( obj . toString ( ) ) ; } catch ( java . lang . IllegalArgumentException e ) { "<AssertPl...
org . junit . Assert . assertTrue ( true )
wrongKeyspace ( ) { typeInformation = org . springframework . data . util . ClassTypeInformation . from ( java . lang . String . class ) ; java . util . Set < org . springframework . data . redis . core . convert . IndexedData > indexes = resolver . resolveIndexesFor ( typeInformation , "" ) ; "<AssertPlaceHolder>" ; }...
org . junit . Assert . assertThat ( indexes . size ( ) , org . hamcrest . CoreMatchers . equalTo ( 0 ) )
testAliasProject ( ) { final org . apache . calcite . tools . RelBuilder builder = org . apache . calcite . tools . RelBuilder . create ( org . apache . calcite . test . RelBuilderTest . config ( ) . build ( ) ) ; org . apache . calcite . rel . RelNode root = builder . scan ( "EMP" ) . as ( "EMP_alias" ) . project ( bu...
org . junit . Assert . assertThat ( root , org . apache . calcite . test . Matchers . hasTree ( expected ) )
assertGetAllTasksWithoutRootNode ( ) { when ( regCenter . isExisted ( ReadyNode . ROOT ) ) . thenReturn ( false ) ; "<AssertPlaceHolder>" ; verify ( regCenter ) . isExisted ( ReadyNode . ROOT ) ; verify ( regCenter , times ( 0 ) ) . getChildrenKeys ( ( ( java . lang . String ) ( any ( ) ) ) ) ; verify ( regCenter , tim...
org . junit . Assert . assertTrue ( readyService . getAllReadyTasks ( ) . isEmpty ( ) )
testSetEnding_Instant ( ) { org . opengis . temporal . Instant result = period1 . getEnding ( ) ; org . opengis . temporal . Instant newInstant = new org . geotools . temporal . object . DefaultInstant ( new org . geotools . temporal . object . DefaultPosition ( new java . util . Date ( ) ) ) ; ( ( org . geotools . tem...
org . junit . Assert . assertFalse ( period1 . getEnding ( ) . equals ( result ) )
testOffsetBetweenTwoTypes ( ) { net . roboconf . tooling . core . autocompletion . Couple couple = prepare ( "app1" , "edited1.graph" , 44 ) ; java . util . List < net . roboconf . tooling . core . autocompletion . ICompletionProposer . RoboconfCompletionProposal > proposals = couple . proposer . findProposals ( couple...
org . junit . Assert . assertEquals ( 0 , proposals . size ( ) )
testBrp ( ) { final java . lang . String result = subject . prettyPrint ( maakBericht ( "BRP" , nl . bzk . migratiebrp . isc . console . mig4jsf . pretty . PrettyPrintTest . BRP_INPUT_WIJZING_ANUMMER_SIGNAAL ) ) ; "<AssertPlaceHolder>" ; } maakBericht ( java . util . List , java . lang . String ) { final nl . bzk . mig...
org . junit . Assert . assertNotNull ( result )
testIntFunctionCallOnJSArray ( ) { com . eclipsesource . v8 . V8CallbackTest . ICallback callback = mock ( com . eclipsesource . v8 . V8CallbackTest . ICallback . class ) ; doReturn ( 99 ) . when ( callback ) . intMethodNoParameters ( ) ; com . eclipsesource . v8 . V8Array v8Array = new com . eclipsesource . v8 . V8Arr...
org . junit . Assert . assertEquals ( 99 , result )
testSomeValues ( ) { final double a = - 1.2 ; final double w = 0.34 ; final double p = 5.6 ; final org . apache . commons . math4 . analysis . UnivariateFunction f = new org . apache . commons . math4 . analysis . function . HarmonicOscillator ( a , w , p ) ; final double d = 0.12345 ; for ( int i = 0 ; i < 10 ; i ++ )...
org . junit . Assert . assertEquals ( ( a * ( org . apache . commons . math4 . util . FastMath . cos ( ( ( w * v ) + p ) ) ) ) , f . value ( v ) , 0 )
shouldIncreaseAfterSubmittingUpdateWhenQueuedUpdate ( ) { willAnswer ( ( i ) -> { wait ( ) ; return null ; } ) . given ( _caretaker ) . processUpdate ( anyObject ( ) ) ; _maintainer . enqueueUpdate ( new org . dcache . services . info . base . StateUpdate ( ) ) ; _maintainer . enqueueUpdate ( new org . dcache . service...
org . junit . Assert . assertThat ( _maintainer . countPendingUpdates ( ) , is ( 2 ) )
test ( ) { db . begin ( ) ; com . orientechnologies . orient . core . record . OVertex v = db . newVertex ( "V" ) ; v . setProperty ( "name" , "Foo" ) ; db . save ( v ) ; db . commit ( ) ; db . begin ( ) ; v . setProperty ( "name" , "Bar" ) ; db . save ( v ) ; db . rollback ( ) ; "<AssertPlaceHolder>" ; } getProperty (...
org . junit . Assert . assertEquals ( "Foo" , v . getProperty ( "name" ) )
requestWithServerErrorOnceShouldReturnResponse ( ) { server . enqueue ( new okhttp3 . mockwebserver . MockResponse ( ) . setResponseCode ( 584 ) . setBody ( "{'error':'InternalServerError','message':'Oops!'}" ) ) ; server . enqueue ( new okhttp3 . mockwebserver . MockResponse ( ) . setResponseCode ( 201 ) . setBody ( "...
org . junit . Assert . assertEquals ( "ok" , new java . lang . String ( response . body ) )
testSetElement ( ) { org . pb . x12 . Segment s = new org . pb . x12 . Segment ( new org . pb . x12 . Context ( '~' , '*' , ':' ) ) ; s . addElements ( "ISA" , "ISA01" , "ISA02" , "ISA04" , "ISA04" ) ; s . setElement ( 3 , "ISA03" ) ; "<AssertPlaceHolder>" ; } getElement ( int ) { return elements . get ( index ) ; }
org . junit . Assert . assertEquals ( "ISA03" , s . getElement ( 3 ) )
testRevocationReqToJson ( ) { try { org . hyperledger . fabric_ca . sdk . RevocationRequest testRevocationReq = new org . hyperledger . fabric_ca . sdk . RevocationRequest ( org . hyperledger . fabric_ca . sdk . RevocationRequestTest . revCAName , org . hyperledger . fabric_ca . sdk . RevocationRequestTest . revEnrollm...
org . junit . Assert . assertTrue ( testRevocationReq . toJson ( ) . contains ( ( ( org . hyperledger . fabric_ca . sdk . RevocationRequestTest . revReason ) + "update" ) ) )
testStartBuiltInDB ( ) { org . easymock . EasyMock . expect ( processManager . getPidFromPidFile ( ( ( serverHome ) + "/hqdb/data/postmaster.pid" ) ) ) . andReturn ( ( - 1L ) ) ; org . easymock . EasyMock . expect ( osInfo . getName ( ) ) . andReturn ( "Mac<sp>OS<sp>X" ) ; org . easymock . EasyMock . expect ( processMa...
org . junit . Assert . assertTrue ( dbStarted )
testToList ( ) { one . util . streamex . List < java . lang . Integer > list = one . util . streamex . StreamEx . of ( 1 , 2 , 3 ) . toList ( ) ; one . util . streamex . List < java . lang . Integer > list2 = one . util . streamex . StreamEx . of ( 4 , 5 , 6 ) . parallel ( ) . toList ( ) ; list2 . add ( 7 ) ; list . ad...
org . junit . Assert . assertEquals ( java . util . Arrays . asList ( 1 , 2 , 3 , 4 , 5 , 6 , 7 ) , list )
vowelHarmonyI2 ( ) { zemberek . core . turkish . TurkishAlphabet alphabet = TurkishAlphabet . INSTANCE ; java . lang . String [ ] a = new java . lang . String [ ] { "elma" , "kedi" , "turp" } ; java . lang . String [ ] b = new java . lang . String [ ] { "yu" , "y" , "" } ; for ( int i = 0 ; i < ( a . length ) ; i ++ ) ...
org . junit . Assert . assertFalse ( alphabet . checkVowelHarmonyI ( a [ i ] , b [ i ] ) )
testWriteDirB ( ) { org . apache . catalina . WebResource d1 = resourceRoot . getResource ( ( ( getMount ( ) ) + "/d1/" ) ) ; java . io . InputStream is = new java . io . ByteArrayInputStream ( "test" . getBytes ( ) ) ; if ( ( d1 . exists ( ) ) || ( d1 . isVirtual ( ) ) ) { "<AssertPlaceHolder>" ; } else { org . junit ...
org . junit . Assert . assertFalse ( resourceRoot . write ( ( ( getMount ( ) ) + "/d1/" ) , is , false ) )
discoveryBeforeConfirmation ( ) { final int awaitTime = 10 ; org . openkilda . messaging . info . event . PathNode source = new org . openkilda . messaging . info . event . PathNode ( new org . openkilda . model . SwitchId ( 1 ) , 1 , 0 ) ; org . openkilda . messaging . info . event . PathNode destination = new org . o...
org . junit . Assert . assertThat ( w . getConfirmedPackets ( ) . size ( ) , org . hamcrest . CoreMatchers . is ( 0 ) )
testSetDelayIsInternal ( ) { reachability . setDelayIsInternal ( true ) ; result1 = reachability . isDelayIsInternal ( ) ; "<AssertPlaceHolder>" ; } is ( java . lang . Class ) { return true ; }
org . junit . Assert . assertThat ( result1 , org . hamcrest . CoreMatchers . is ( true ) )
addMember ( ) { boolean result = mocker . getComponentUnderTest ( ) . addMember ( "xwiki:XWiki.UserA" , "subwiki" ) ; "<AssertPlaceHolder>" ; verify ( wikiUserManager ) . addMember ( "xwiki:XWiki.UserA" , "subwiki" ) ; } addMember ( java . lang . String , boolean ) { this . groupEditPage . addMemberToGroup ( member , i...
org . junit . Assert . assertTrue ( result )
testEncode2 ( ) { java . lang . Object o = new java . lang . Object ( ) ; com . dianping . swallow . common . internal . codec . JsonDecoder jsonDecoder = new com . dianping . swallow . common . internal . codec . JsonDecoder ( com . dianping . swallow . common . internal . message . SwallowMessage . class ) ; "<Assert...
org . junit . Assert . assertEquals ( o , jsonDecoder . decode ( null , null , o ) )
testStateConversionForSwitchWidgetWithMappingThroughGetState ( ) { org . eclipse . smarthome . core . types . State colorState = new org . eclipse . smarthome . core . library . types . HSBType ( "23,42,50" ) ; org . eclipse . smarthome . core . library . items . ColorItem colorItem = new org . eclipse . smarthome . co...
org . junit . Assert . assertEquals ( colorState , stateForSwitch )
givenResourceExists_whenResourceIsRetrieved_thenTheResultIsNotNull ( ) { final org . baeldung . persistence . model . Foo existingResource = persistNewEntity ( ) ; final org . baeldung . persistence . model . Foo retrievedResource = getApi ( ) . findOne ( existingResource . getId ( ) ) ; "<AssertPlaceHolder>" ; } getId...
org . junit . Assert . assertNotNull ( retrievedResource )
testRestrictive ( ) { org . jboss . as . controller . access . CombinationPolicy [ ] policySet = org . jboss . as . controller . access . CombinationPolicy . values ( ) ; "<AssertPlaceHolder>" ; } values ( ) { if ( ( values ) == null ) values = new Values ( ) ; return values ; }
org . junit . Assert . assertEquals ( 2 , policySet . length )
testInit ( ) { boolean initSuccessful = false ; try { org . ebayopensource . turmeric . runtime . common . errors . ErrorDataProvider propProvider = org . ebayopensource . turmeric . runtime . common . exceptions . ErrorDataFactory . initialize ( runtimeDomain ) ; if ( propProvider instanceof org . ebayopensource . tur...
org . junit . Assert . assertTrue ( initSuccessful )
test_SingleFile ( ) { de . vandermeer . svg2vector . applications . fh . Svg2Vector_FH app = new de . vandermeer . svg2vector . applications . fh . Svg2Vector_FH ( ) ; java . lang . String [ ] args = org . apache . commons . lang3 . ArrayUtils . addAll ( de . vandermeer . svg2vector . applications . fh . Test_Svg2Vecto...
org . junit . Assert . assertEquals ( 0 , app . executeApplication ( args ) )
testHFileSize ( ) { org . apache . hadoop . fs . Path inputPath = tmpDir . getPath ( "in" ) ; java . util . List < org . apache . hadoop . hbase . KeyValue > kvs = com . google . common . collect . ImmutableList . of ( new org . apache . hadoop . hbase . KeyValue ( org . apache . crunch . io . hbase . HFileSourceIT . R...
org . junit . Assert . assertTrue ( ( ( hfile . getSize ( conf ) ) >= size ) )
testConjugateNaN ( ) { org . hipparchus . complex . Complex z = Complex . NaN . conjugate ( ) ; "<AssertPlaceHolder>" ; } isNaN ( ) { return ( java . lang . Double . isNaN ( theta ) ) || ( java . lang . Double . isNaN ( phi ) ) ; }
org . junit . Assert . assertTrue ( z . isNaN ( ) )
testOpenLine ( ) { com . bixly . pastevid . recorders . AudioRecorderTest . log ( "openLine" ) ; com . bixly . pastevid . recorders . AudioRecorder instance = recorder . getAudioRecorder ( ) ; instance . openLine ( ) ; "<AssertPlaceHolder>" ; } getTargetDataLine ( ) { return this . targetDataLine ; }
org . junit . Assert . assertNotNull ( instance . getTargetDataLine ( ) )
shipmentViolationAtAct7_shouldWork ( ) { buildAnotherScenarioWithOnlyOneVehicleAndWithoutAnyConstraintsBefore ( ) ; jsprit . core . reporting . SolutionPrinter . print ( vrp , solution , SolutionPrinter . Print . VERBOSE ) ; jsprit . core . analysis . SolutionAnalyser analyser = new jsprit . core . analysis . SolutionA...
org . junit . Assert . assertFalse ( violation )
testEmptyListIsValid ( ) { final uk . gov . gchq . gaffer . parquetstore . partitioner . GroupPartitioner partitioner = new uk . gov . gchq . gaffer . parquetstore . partitioner . GroupPartitioner ( "GROUP" , new java . util . ArrayList ( ) ) ; final int size = partitioner . getSplitPoints ( ) . size ( ) ; "<AssertPlac...
org . junit . Assert . assertEquals ( 0 , size )
testVariableDirectoryMiddle ( ) { final java . lang . String s = "" + ( ( ( ( ( "p<sp>cnf<sp>3<sp>2\n" + "c<sp>1<sp>Foo\n" ) + "c<sp>2<sp>Bar\n" ) + "c<sp>3<sp>Baz\n" ) + "1<sp>-3<sp>0\n" ) + "2<sp>3<sp>-1<sp>0" ) ; final de . ovgu . featureide . fm . core . io . dimacs . DimacsReader r = new de . ovgu . featureide . f...
org . junit . Assert . assertEquals ( expected , actual )
getUsernameWithNull ( ) { org . phenotips . data . permissions . Collaborator c = new org . phenotips . data . permissions . internal . DefaultCollaborator ( null , null , this . helper ) ; "<AssertPlaceHolder>" ; } getUsername ( ) { return null ; }
org . junit . Assert . assertNull ( c . getUsername ( ) )
testGetSecurityToken ( ) { com . aliyuncs . auth . AlibabaCloudCredentialsProvider provider = org . mockito . Mockito . mock ( com . aliyuncs . auth . AlibabaCloudCredentialsProvider . class ) ; com . aliyuncs . auth . AlibabaCloudCredentials credentials = org . mockito . Mockito . mock ( com . aliyuncs . auth . Legacy...
org . junit . Assert . assertNull ( adaptor . getSecurityToken ( ) )
test_transient_field_difference ( ) { final org . apache . commons . lang3 . builder . ReflectionDiffBuilderTest . TypeTestClass firstObject = new org . apache . commons . lang3 . builder . ReflectionDiffBuilderTest . TypeTestClass ( ) ; firstObject . transientField = "a" ; final org . apache . commons . lang3 . builde...
org . junit . Assert . assertEquals ( 0 , list . getNumberOfDiffs ( ) )
testRegisterObjUserInfoFieldMethod ( ) { com . j256 . simplejmx . server . JmxServerTest . RandomObject obj = new com . j256 . simplejmx . server . JmxServerTest . RandomObject ( ) ; javax . management . ObjectName objectName = com . j256 . simplejmx . common . ObjectNameUtil . makeObjectName ( com . j256 . simplejmx ....
org . junit . Assert . assertEquals ( val , client . getAttribute ( com . j256 . simplejmx . server . JmxServerTest . DOMAIN_NAME , com . j256 . simplejmx . server . JmxServerTest . OBJECT_NAME , "foo" ) )
testParsingDbName ( ) { uri = "postgres:///mydb" ; actualParsedResult = parse ( uri ) ; expectedParsedResult = new io . vertx . core . json . JsonObject ( ) . put ( "database" , "mydb" ) ; "<AssertPlaceHolder>" ; } parse ( java . lang . String$String ) { try { io . vertx . core . json . JsonObject configuration = new i...
org . junit . Assert . assertEquals ( expectedParsedResult , actualParsedResult )
testFilterSimple ( ) { int delta = compareFilter ( TpchTable . CUSTOMER , 6 , "c_custkey<sp><<sp>c_nationkey" ) ; "<AssertPlaceHolder>" ; } compareFilter ( io . airlift . tpch . GenerationDefinition . TpchTable , double , java . lang . String ) { com . dremio . exec . physical . config . Filter filter = new com . dremi...
org . junit . Assert . assertTrue ( ( delta > 0 ) )
deveObterLogradouroComoFoiSetado ( ) { final com . fincatto . documentofiscal . nfe310 . classes . NFEndereco endereco = new com . fincatto . documentofiscal . nfe310 . classes . NFEndereco ( ) ; endereco . setLogradouro ( "Fr3gSvoAeKbGpQD3r98KFeB50P3Gq14XBVsv5fpiaBvJ3HTOpREiwYGs20Xw" ) ; "<AssertPlaceHolder>" ; } getL...
org . junit . Assert . assertEquals ( "Fr3gSvoAeKbGpQD3r98KFeB50P3Gq14XBVsv5fpiaBvJ3HTOpREiwYGs20Xw" , endereco . getLogradouro ( ) )
shouldReturnResultsWithScanAndScrollForGivenCriteriaQueryAndClass ( ) { java . util . List < org . springframework . data . elasticsearch . core . IndexQuery > entities = org . springframework . data . elasticsearch . core . ElasticsearchTemplateTests . createSampleEntitiesWithMessage ( "Test<sp>message" , 30 ) ; elast...
org . junit . Assert . assertThat ( sampleEntities . size ( ) , is ( equalTo ( 30 ) ) )
verifyThatPrefixParsedCorrectly ( ) { me . magnet . consultant . Path actual = me . magnet . consultant . PathParser . parse ( "some-prefix" , "some-prefix/oauth" ) ; me . magnet . consultant . Path expected = new me . magnet . consultant . Path ( "some-prefix" , new me . magnet . consultant . ServiceIdentifier ( "oaut...
org . junit . Assert . assertEquals ( expected , actual )
testCreateUnknownFileResource ( ) { java . io . File tempFile = new java . io . File ( java . util . UUID . randomUUID ( ) . toString ( ) ) ; org . jboss . forge . addon . resource . FileResource < ? > resource = factory . create ( tempFile ) . reify ( org . jboss . forge . addon . resource . FileResource . class ) ; "...
org . junit . Assert . assertNotNull ( resource )
testGetClient ( ) { try { final com . github . rnewson . couchdb . lucene . Config config = new com . github . rnewson . couchdb . lucene . Config ( ) ; org . apache . http . client . HttpClient client = config . getClient ( ) ; "<AssertPlaceHolder>" ; } catch ( org . apache . commons . configuration . ConfigurationExc...
org . junit . Assert . assertNotNull ( client )
shouldReturnTrueWhenSchemaValidateWithValidElement ( ) { final uk . gov . gchq . gaffer . store . schema . Schema schema = mock ( uk . gov . gchq . gaffer . store . schema . Schema . class ) ; final java . lang . String group = uk . gov . gchq . gaffer . commonutil . TestGroups . EDGE ; final uk . gov . gchq . gaffer ....
org . junit . Assert . assertTrue ( isValid )
testGetServerBehaviourDelegate_withDelegate ( ) { com . google . cloud . tools . eclipse . appengine . localserver . server . LocalAppEngineServerBehaviour delegate = new com . google . cloud . tools . eclipse . appengine . localserver . server . LocalAppEngineServerBehaviour ( ) ; com . google . cloud . tools . eclips...
org . junit . Assert . assertEquals ( delegate , console . getServerBehaviourDelegate ( ) )