input
stringlengths
28
18.7k
output
stringlengths
39
1.69k
subscribeToService_setCutOffDaySync ( ) { int cutOffDay = 5 ; setCutOffDayForOrganization ( supplier . getKey ( ) , cutOffDay ) ; container . login ( java . lang . String . valueOf ( supplierAdmin . getKey ( ) ) , org . oscm . subscriptionservice . bean . ROLE_ORGANIZATION_ADMIN ) ; org . oscm . internal . vo . VOSubsc...
org . junit . Assert . assertEquals ( cutOffDay , getCutOffDayFromSubscription ( voSubscription . getKey ( ) ) )
testEncodeTLM ( ) { org . eclipse . kura . internal . ble . eddystone . BluetoothLeEddystoneEncoderImpl encoder = new org . eclipse . kura . internal . ble . eddystone . BluetoothLeEddystoneEncoderImpl ( ) ; org . eclipse . kura . ble . eddystone . BluetoothLeEddystone beacon = new org . eclipse . kura . ble . eddyston...
org . junit . Assert . assertArrayEquals ( expected , encoded )
shouldIndicateNotWritableAnyNumber ( ) { io . netty . buffer . ByteBuf buf = buffer ( allocate ( 8 ) . asReadOnlyBuffer ( ) ) . clear ( ) ; try { "<AssertPlaceHolder>" ; } finally { buf . release ( ) ; } } isWritable ( int ) { return false ; }
org . junit . Assert . assertFalse ( buf . isWritable ( 1 ) )
testV8ValueV8Object_StringRepresentation ( ) { "<AssertPlaceHolder>" ; } getStringRepresentation ( int ) { switch ( type ) { case com . eclipsesource . v8 . V8Value . NULL : return "String" 7 ; case com . eclipsesource . v8 . V8Value . INTEGER : return "Integer" ; case com . eclipsesource . v8 . V8Value . DOUBLE : retu...
org . junit . Assert . assertEquals ( "V8Object" , com . eclipsesource . v8 . V8Value . getStringRepresentation ( 6 ) )
findProviders_shouldReturnNoResultsIfThereAreNoMatchingProviders ( ) { org . springframework . mock . web . MockHttpServletRequest request = newGetRequest ( getURI ( ) ) ; request . addParameter ( "q" , "zzzznobody" ) ; java . util . List < ? > results = ( ( java . util . List < ? > ) ( deserialize ( handle ( request )...
org . junit . Assert . assertEquals ( 0 , results . size ( ) )
testUnknownScanner ( ) { java . lang . String scanner = client . createScanner ( creds , tableName , null ) ; "<AssertPlaceHolder>" ; client . closeScanner ( scanner ) ; try { client . hasNext ( scanner ) ; org . junit . Assert . fail ( "exception<sp>not<sp>thrown" ) ; } catch ( org . apache . accumulo . proxy . thrift...
org . junit . Assert . assertFalse ( client . hasNext ( scanner ) )
shouldNotInitIfAlreadySet ( ) { org . camunda . bpm . engine . test . api . authorization . DefaultUserPermissionNameForTaskCfgTest . TestProcessEngineCfg testProcessEngineCfg = new org . camunda . bpm . engine . test . api . authorization . DefaultUserPermissionNameForTaskCfgTest . TestProcessEngineCfg ( ) ; testProce...
org . junit . Assert . assertEquals ( Permissions . ALL , testProcessEngineCfg . getDefaultUserPermissionForTask ( ) )
testEqualsRealDifference ( ) { org . apache . commons . math . complex . Complex x = new org . apache . commons . math . complex . Complex ( 0.0 , 0.0 ) ; org . apache . commons . math . complex . Complex y = new org . apache . commons . math . complex . Complex ( ( 0.0 + ( Double . MIN_VALUE ) ) , 0.0 ) ; "<AssertPlac...
org . junit . Assert . assertFalse ( x . equals ( y ) )
testHashCodeWithDifferentWidth ( ) { org . eclipse . swt . graphics . LineAttributes attributes1 = new org . eclipse . swt . graphics . LineAttributes ( 1 ) ; org . eclipse . swt . graphics . LineAttributes attributes2 = new org . eclipse . swt . graphics . LineAttributes ( 2 ) ; "<AssertPlaceHolder>" ; } hashCode ( ) ...
org . junit . Assert . assertTrue ( ( ( attributes1 . hashCode ( ) ) != ( attributes2 . hashCode ( ) ) ) )
testGetByName ( ) { c . stubGet ( ( ( s . getPath ( ) ) + "/Taxes" ) , com . sparkplatform . api . models . CustomFieldTest . JSON_TAXES , 200 ) ; com . sparkplatform . api . core . Response r = c . get ( ( ( s . getPath ( ) ) + "/Taxes" ) , new java . util . HashMap < com . sparkplatform . api . core . ApiParameter , ...
org . junit . Assert . assertNotNull ( r )
testGetBucketStorageLocationExternal ( ) { org . sagebionetworks . repo . model . project . ExternalS3StorageLocationSetting location = new org . sagebionetworks . repo . model . project . ExternalS3StorageLocationSetting ( ) ; location . setBucket ( "someOtherBuckt" ) ; java . lang . String bucket = org . sagebionetwo...
org . junit . Assert . assertEquals ( location . getBucket ( ) , bucket )
getUniqueGroupId ( ) { servlet . setExpectedMethodName ( "getUniqueGroupId" ) ; servlet . setFakeResponse ( "group1" ) ; "<AssertPlaceHolder>" ; } getUniqueGroupId ( java . lang . String ) { return userRegistry . getUniqueGroupId ( securityName ) ; }
org . junit . Assert . assertEquals ( "group1" , servlet . getUniqueGroupId ( "group1" ) )
testSimpleStatelessWebServiceEndpoint ( java . net . URL ) { final javax . xml . namespace . QName serviceName = new javax . xml . namespace . QName ( "com.acme.jaxws" , com . acme . jaxws . EchoWebServiceEndpointTestCase . ECHO_SERVICE_NAME ) ; final java . net . URL wsdlURL = new java . net . URL ( deploymentUrl , ( ...
org . junit . Assert . assertEquals ( "hello" , result )
testLeeg ( ) { final nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder builder = new nl . bzk . brp . util . hisvolledig . kern . PersoonHisVolledigImplBuilder ( nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortPersoon . INGESCHREVENE ) ; final nl . bzk . brp . model . hisvolledig ...
org . junit . Assert . assertNull ( brpBijhoudingsaard )
loadFillinOptions ( ) { java . util . List < org . oscm . types . enumtypes . FillinCriterion > fillinOptions = new java . util . ArrayList < org . oscm . types . enumtypes . FillinCriterion > ( ) ; fillinOptions . add ( FillinCriterion . ACTIVATION_DESCENDING ) ; org . oscm . internal . landingpageconfiguration . Land...
org . junit . Assert . assertEquals ( FillinCriterion . ACTIVATION_DESCENDING , model . getFillinItems ( ) . get ( 0 ) . getValue ( ) )
testResolveBlobFromDownloadUrl ( ) { java . lang . String repositoryName = "test" ; try ( org . nuxeo . ecm . core . api . CloseableCoreSession session = org . nuxeo . ecm . core . api . CoreInstance . openCoreSession ( repositoryName ) ) { org . nuxeo . ecm . core . api . DocumentModel doc = session . createDocumentMo...
org . junit . Assert . assertEquals ( blob , resolvedBlob )
testLength ( ) { cal . set ( 2020 , 0 , 1 ) ; temporalGeomericPrimitive1 = new org . geotools . temporal . object . DefaultPeriod ( new org . geotools . temporal . object . DefaultInstant ( position1 ) , new org . geotools . temporal . object . DefaultInstant ( position2 ) ) ; temporalGeomericPrimitive2 = new org . geo...
org . junit . Assert . assertFalse ( temporalGeomericPrimitive2 . length ( ) . equals ( result ) )
testJournalRolling ( ) { if ( org . apache . bookkeeper . test . BookieJournalRollingTest . LOG . isDebugEnabled ( ) ) { org . apache . bookkeeper . test . BookieJournalRollingTest . LOG . debug ( "Testing<sp>Journal<sp>Rolling" ) ; } org . apache . bookkeeper . client . LedgerHandle [ ] lhs = writeLedgerEntries ( 4 , ...
org . junit . Assert . assertTrue ( ( numJournals <= 2 ) )
whenRequestingNeighborhoodOfTargetJob_nNeighborsShouldBeTwo ( ) { com . graphhopper . jsprit . core . algorithm . ruin . JobNeighborhoodsOptimized jn = new com . graphhopper . jsprit . core . algorithm . ruin . JobNeighborhoodsOptimized ( vrp , jobDistance , 2 ) ; jn . initialise ( ) ; java . util . Iterator < com . gr...
org . junit . Assert . assertEquals ( 2 , services . size ( ) )
findId0 ( ) { final net . violet . platform . datamodel . Message myMessage = Factories . MESSAGE . find ( 1154 ) ; "<AssertPlaceHolder>" ; } find ( java . util . regex . Matcher ) { int nbFind = 0 ; while ( myMatcher . find ( ) ) { nbFind ++ ; } return nbFind ; }
org . junit . Assert . assertTrue ( ( myMessage == null ) )
groupByWithTarget ( ) { com . gs . collections . api . set . sorted . ImmutableSortedSet < java . lang . Integer > undertest = this . classUnderTest ( ) ; com . gs . collections . impl . multimap . set . sorted . TreeSortedSetMultimap < java . lang . Integer , java . lang . Integer > actual = undertest . groupBy ( com ...
org . junit . Assert . assertEquals ( expected , actual )
test1 ( ) { java . util . List < edu . cmu . tetrad . test . Node > nodes = new java . util . ArrayList ( ) ; for ( int i = 0 ; i < 5 ; i ++ ) { nodes . add ( new edu . cmu . tetrad . test . ContinuousVariable ( ( "X" + ( i + 1 ) ) ) ) ; } edu . cmu . tetrad . test . SemGraph graph = new edu . cmu . tetrad . test . Sem...
org . junit . Assert . assertTrue ( isStandardized ( sem ) )
testAllFiles ( ) { java . io . File dir = new java . io . File ( "./src/test/testdata/fwcommon/desktop" ) ; java . io . File [ ] files = dir . listFiles ( ) ; "<AssertPlaceHolder>" ; long start = java . lang . System . currentTimeMillis ( ) ; com . gs . fw . common . freyaxml . test . fwcommon . desktop . FWCommonDeskt...
org . junit . Assert . assertTrue ( ( ( files . length ) > 0 ) )
testHasParentWhenItemHasParent ( ) { final java . lang . String parentUUID = "parentUUID" ; final org . kie . workbench . common . dmn . client . decision . DecisionNavigatorItem item = mock ( org . kie . workbench . common . dmn . client . decision . DecisionNavigatorItem . class ) ; final org . kie . workbench . comm...
org . junit . Assert . assertTrue ( hasParent )
hasChildren_withHierarchy ( ) { final java . util . SortedSet < uk . co . flax . biosolr . TreeFacetField > hierarchy = new java . util . TreeSet ( ) ; final uk . co . flax . biosolr . TreeFacetField child = new uk . co . flax . biosolr . TreeFacetField ( "label" , "value" , 0 , 0 , null ) ; hierarchy . add ( child ) ;...
org . junit . Assert . assertTrue ( test . hasChildren ( ) )
bindsSingletonResourceWithNewPath ( ) { org . everrest . core . impl . ResourceBinderImplTest . EchoResource resource = new org . everrest . core . impl . ResourceBinderImplTest . EchoResource ( ) ; resourceBinder . addResource ( "x/y" , resource , new javax . ws . rs . core . MultivaluedHashMap ( ) ) ; org . everrest ...
org . junit . Assert . assertSame ( resource , resourceFactory . getInstance ( mock ( org . everrest . core . ApplicationContext . class ) ) )
testNone ( ) { org . yestech . rpx . objectmodel . Profile p = org . yestech . rpx . objectmodel . Profile . fromJson ( new org . json . JSONObject ( "{}" ) ) ; "<AssertPlaceHolder>" ; } fromJson ( org . json . JSONObject ) { org . yestech . rpx . objectmodel . Profile p = new org . yestech . rpx . objectmodel . Profil...
org . junit . Assert . assertNotNull ( p )
fillCacheTest ( ) { java . util . HashMap < java . lang . String , java . lang . String > prefixes = new java . util . HashMap ( ) ; prefixes . put ( "rdfs" , "http://www.w3.org/2000/01/rdf-schema#" ) ; prefixes . put ( "dbpo:abstract" 0 , "http://www.w3.org/1999/02/22-rdf-syntax-ns#" ) ; prefixes . put ( "dbpo:abstrac...
org . junit . Assert . assertTrue ( ( ( cache . size ( ) ) > 0 ) )
anyOfSet ( ) { java . util . Set < java . lang . String > set = new java . util . HashSet < java . lang . String > ( asList ( "-" , "--" , "---" ) ) ; "<AssertPlaceHolder>" ; } contains ( T ) { return ( repetitionsOf ( element ) ) > 0 ; }
org . junit . Assert . assertTrue ( set . contains ( any ( set ) ) )
testFetchByPrimaryKeysWithMultiplePrimaryKeysWhereNoPrimaryKeysExist ( ) { long pk1 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; long pk2 = com . liferay . portal . kernel . test . util . RandomTestUtil . nextLong ( ) ; java . util . Set < java . io . Serializable > primaryKeys = ne...
org . junit . Assert . assertTrue ( siteNavigationMenuItems . isEmpty ( ) )
notestCallingMethodsOnNewMapLiteral ( ) { org . apache . commons . jexl3 . JexlExpression e = org . apache . commons . jexl3 . JEXL . createExpression ( "size({<sp>'foo'<sp>:<sp>'bar'<sp>}.values())" ) ; org . apache . commons . jexl3 . JexlContext jc = new org . apache . commons . jexl3 . MapContext ( ) ; java . lang ...
org . junit . Assert . assertEquals ( new java . lang . Integer ( 1 ) , o )
testAddTextGetText ( ) { final org . openhealthtools . mdht . uml . hl7 . datatypes . EN en = ( ( org . openhealthtools . mdht . uml . hl7 . datatypes . EN ) ( getObjectToTest ( ) ) ) ; en . addText ( DatatypeTestCase . TEST_TEXT ) ; "<AssertPlaceHolder>" ; } getText ( ) { org . eclipse . swt . custom . CLabel cl = ( (...
org . junit . Assert . assertTrue ( en . getText ( ) . equals ( DatatypeTestCase . TEST_TEXT ) )
testProcessListFailures ( ) { java . util . List < java . lang . Long > longList = com . google . common . collect . Lists . newArrayList ( java . util . stream . LongStream . range ( 0L , 10L ) . iterator ( ) ) ; java . util . concurrent . atomic . AtomicLong total = new java . util . concurrent . atomic . AtomicLong ...
org . junit . Assert . assertEquals ( 10L , total . get ( ) )
testNegative_last ( ) { org . roaringbitmap . RoaringBitmap bitmap = new org . roaringbitmap . RoaringBitmap ( ) ; bitmap . add ( ( - 7 ) ) ; bitmap . add ( 777 ) ; "<AssertPlaceHolder>" ; } last ( ) { assertNonEmpty ( ( ( numberOfRuns ( ) ) == 0 ) ) ; int index = ( numberOfRuns ( ) ) - 1 ; int start = org . roaringbit...
org . junit . Assert . assertEquals ( ( - 7 ) , bitmap . last ( ) )
testTapProducer ( ) { "<AssertPlaceHolder>" ; tapProducer . dump ( testSet , tempFile ) ; } getTapLines ( ) { return tapLines ; }
org . junit . Assert . assertTrue ( ( ( testSet . getTapLines ( ) . size ( ) ) > 0 ) )
testUserInfo ( ) { java . lang . String openId = java . lang . System . getProperty ( "weixin.openid" ) ; com . belerweb . social . bean . Result < com . belerweb . social . weixin . bean . User > result = weixin . getUser ( ) . userInfo ( weixin . getAccessToken ( ) . getToken ( ) , openId ) ; "<AssertPlaceHolder>" ; ...
org . junit . Assert . assertTrue ( result . success ( ) )
testAggregate ( ) { final uk . gov . gchq . gaffer . time . LongTimeSeries timeSeries1 = new uk . gov . gchq . gaffer . time . LongTimeSeries ( CommonTimeUtil . TimeBucket . SECOND ) ; timeSeries1 . put ( java . time . Instant . ofEpochMilli ( 1000L ) , 100L ) ; timeSeries1 . put ( java . time . Instant . ofEpochMilli ...
org . junit . Assert . assertEquals ( expected , aggregated )
testHasFreeSpace ( ) { "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( true )
testBase64Stream ( ) { java . io . ByteArrayInputStream stream = new java . io . ByteArrayInputStream ( "dGVzdA==" . getBytes ( "US-ASCII" ) ) ; java . io . InputStream base64stream = new org . apache . chemistry . opencmis . commons . impl . Base64 . InputStream ( stream ) ; java . io . ByteArrayOutputStream output = ...
org . junit . Assert . assertArrayEquals ( "test" . getBytes ( "US-ASCII" ) , output . toByteArray ( ) )
readUnsignedByte ( ) { when ( delegate . readUnsignedByte ( ) ) . thenReturn ( 1 ) ; "<AssertPlaceHolder>" ; } readUnsignedByte ( ) { return ( buffer . readByte ( ) ) & 255 ; }
org . junit . Assert . assertEquals ( 1 , buffer . readUnsignedByte ( ) )
testProcessFile ( ) { com . ewcms . publication . freemarker . generator . GeneratorBaseTest . GeneratorBaseImpl html = new com . ewcms . publication . freemarker . generator . GeneratorBaseTest . GeneratorBaseImpl ( cfg , initSite ( ) , initChannel ( ) ) ; java . io . File file = html . process ( getTemplatePath ( "in...
org . junit . Assert . assertNotNull ( file )
testQueryListInParams ( ) { try { com . ctrip . platform . dal . dao . shard . DalHints hints = new com . ctrip . platform . dal . dao . shard . DalHints ( ) ; java . util . List < java . lang . Short > result = queryListForInParamOld ( hints ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { e . print...
org . junit . Assert . assertEquals ( 6 , result . size ( ) )
validate_shouldFailIfTheConceptMapTypeNameIsADuplicate ( ) { org . openmrs . ConceptMapType mapType = new org . openmrs . ConceptMapType ( ) ; mapType . setName ( "is<sp>a" ) ; org . springframework . validation . Errors errors = new org . springframework . validation . BindException ( mapType , "mapType" ) ; new org ....
org . junit . Assert . assertEquals ( true , errors . hasFieldErrors ( "name" ) )
testClientConfigHostNameVerificationFail ( ) { final java . util . Properties connectionProps = new java . util . Properties ( ) ; connectionProps . setProperty ( DrillProperties . ENABLE_TLS , "true" ) ; connectionProps . setProperty ( DrillProperties . TRUSTSTORE_PATH , org . apache . drill . exec . rpc . user . secu...
org . junit . Assert . assertEquals ( failureCaught , true )
convertsFencedCodeBlockToConfluenceCodeBlock ( ) { java . lang . String markdown = "```groovy\n" + ( ( "System.out.println(\"foobar\")\n" + "int<sp>x<sp>=<sp>5\n" ) + "```" ) ; java . lang . String html = markedMacro . convertToHtml ( markdown ) ; java . lang . String expectedHtml = ( ( ( ( java . lang . String . forma...
org . junit . Assert . assertEquals ( expectedHtml , html )
testNumberOfUnplacedHeavyAtoms_IAtomContainer ( ) { org . openscience . cdk . interfaces . IAtomContainer ac = makeAlphaPinene ( ) ; int count = new org . openscience . cdk . modeling . builder3d . AtomPlacer3D ( ) . numberOfUnplacedHeavyAtoms ( ac ) ; "<AssertPlaceHolder>" ; } numberOfUnplacedHeavyAtoms ( org . opensc...
org . junit . Assert . assertEquals ( 10 , count )
testAllRead ( ) { int rwx = 292 ; org . dcache . nfs . v4 . xdr . nfsace4 [ ] acl = new org . dcache . nfs . v4 . xdr . nfsace4 [ ] { toACE ( Acls . EVERYONE , org . dcache . nfs . v4 . acl . ACE4_ACCESS_ALLOWED_ACE_TYPE , org . dcache . nfs . v4 . acl . ACE4_READ_DATA ) } ; "<AssertPlaceHolder>" ; } toMode ( org . dca...
org . junit . Assert . assertEquals ( rwx , toMode ( acl ) )
doJavaActionParameterAndReturnTypeInteger ( ) { io . cloudslang . lang . runtime . env . RunEnvironment runEnv = new io . cloudslang . lang . runtime . env . RunEnvironment ( ) ; java . util . Map < java . lang . String , io . cloudslang . lang . entities . bindings . values . Value > initialCallArguments = new java . ...
org . junit . Assert . assertEquals ( 5 , returnValues . getOutputs ( ) . get ( "port" ) . get ( ) )
testProcessFilter3 ( ) { _pathContext = com . liferay . portal . servlet . filters . virtualhost . VirtualHostFilterTest . _PATH_PROXY ; _pathProxy = com . liferay . petra . string . StringPool . BLANK ; _mockHttpServletRequest . setRequestURI ( com . liferay . portal . servlet . filters . virtualhost . VirtualHostFilt...
org . junit . Assert . assertEquals ( com . liferay . portal . servlet . filters . virtualhost . VirtualHostFilterTest . _LAST_PATH , lastPath )
testGetBrowser ( ) { for ( final lcmc . host . domain . Host host : integrationTestLauncher . getHosts ( ) ) { "<AssertPlaceHolder>" ; } } getBrowser ( ) { return ( ( lcmc . cluster . ui . ClusterBrowser ) ( super . getBrowser ( ) ) ) ; }
org . junit . Assert . assertNotNull ( host . getBrowser ( ) )
testFindsKotlinCompilerJarInConfigWithAbsolutePath ( ) { java . nio . file . Path kotlinRuntime = testDataDirectory . resolve ( "faux_kotlin_home" ) . resolve ( "libexec" ) . resolve ( "lib" ) . resolve ( "kotlin-compiler.jar" ) ; com . facebook . buck . core . config . BuckConfig buckConfig = com . facebook . buck . c...
org . junit . Assert . assertEquals ( kotlinRuntime , compilerJar )
$batch0_11NavPro__id ( ) { java . lang . String id = null ; try { java . lang . String path = "d" 5 ; java . lang . String body = ( ( ( ( ( ( START_BOUNDARY ) + ( retrievePostBody ( "Supplier" , "d" 3 ) ) ) + ( START_BOUNDARY ) ) + ( retrievePostBodyNoId ( path , HttpMethod . POST ) ) ) + ( START_BOUNDARY ) ) + ( retri...
org . junit . Assert . assertEquals ( 1 , results . size ( ) )
testGeldig ( ) { final nl . bzk . brp . model . algemeen . stamgegeven . kern . SoortNederlandsReisdocumentAttribuut nederlandseIdKaart = nl . bzk . brp . util . StatischeObjecttypeBuilder . NEDERLANDSE_ID_KAART ; org . springframework . test . util . ReflectionTestUtils . setField ( nederlandseIdKaart . getWaarde ( ) ...
org . junit . Assert . assertTrue ( berichtEntiteits . isEmpty ( ) )
previewSystemsShouldHaveSuggestion ( ) { t ( "A=(1,1)" ) ; t ( "B=(0,1)" ) ; t ( "C=(1,0)" ) ; t ( "p=Polygon(A,B,C)" ) ; t ( "r:x=y" ) ; org . geogebra . common . kernel . geos . GeoLine line = new org . geogebra . common . kernel . geos . GeoLine ( org . geogebra . commands . AlgebraStyleTest . app . getKernel ( ) . ...
org . junit . Assert . assertNotNull ( org . geogebra . common . gui . view . algebra . SuggestionSolve . get ( line ) )
testSendReplacesHeaderTokenWithHeadHtml ( ) { registerEntryPoint ( WebClient . HEAD_HTML , "<head<sp>/>" ) ; startupPage . activate ( ) ; mockTemplate ( org . eclipse . rap . rwt . internal . service . StartupPage_Test . variableFrom ( StartupPageTemplate . TOKEN_HEADERS ) ) ; startupPage . send ( response ) ; "<Assert...
org . junit . Assert . assertEquals ( "<head<sp>/>" , response . getContent ( ) )
testChangingObservableToNull ( ) { nestedListenerHandle = createAttachedNestedListenerHandle ( nesting , listenerWhichFailsWhenCalled ) ; setNestingObservable ( nesting , null ) ; "<AssertPlaceHolder>" ; } isInnerObservablePresent ( ) { return internals . innerObservablePresentProperty ( ) . get ( ) ; }
org . junit . Assert . assertFalse ( nestedListenerHandle . isInnerObservablePresent ( ) )
testBuildProducerPathsNoPrefix ( ) { java . lang . System . clearProperty ( Const . URL_PREFIX ) ; spm . buildProducerPaths ( ) ; "<AssertPlaceHolder>" ; } buildProducerPaths ( ) { java . lang . String urlPrefix = java . lang . System . getProperty ( Const . URL_PREFIX ) ; if ( org . springframework . util . StringUtil...
org . junit . Assert . assertSame ( spm . producerPaths , spm . swaggerPaths )
testGetEnvironmentMap ( ) { java . util . Map < java . lang . String , java . lang . String > map = new java . util . HashMap ( ) ; when ( launchConfig . getAttribute ( eq ( ILaunchManager . ATTR_ENVIRONMENT_VARIABLES ) , org . mockito . Matchers . anyMapOf ( java . lang . String . class , java . lang . String . class ...
org . junit . Assert . assertEquals ( map , com . google . cloud . tools . eclipse . appengine . localserver . ui . GcpLocalRunTab . getEnvironmentMap ( launchConfig ) )
testCreateBusinessObjectDefinitionTag ( ) { org . finra . herd . model . api . xml . BusinessObjectDefinitionKey businessObjectDefinitionKey = new org . finra . herd . model . api . xml . BusinessObjectDefinitionKey ( BDEF_NAMESPACE , BDEF_NAME ) ; org . finra . herd . model . api . xml . BusinessObjectDefinitionTagKey...
org . junit . Assert . assertEquals ( new org . finra . herd . model . api . xml . BusinessObjectDefinitionTag ( result . getId ( ) , businessObjectDefinitionTagKey ) , result )
testWrongOutputConnection ( ) { boolean failure = false ; try { executeAction ( "wrongoutput" , "xml" ) ; } catch ( it . geosolutions . geobatch . flow . event . action . ActionException e ) { failure = true ; } catch ( java . net . URISyntaxException e ) { org . junit . Assert . fail ( ( "Failure<sp>in<sp>loading<sp>r...
org . junit . Assert . assertTrue ( failure )
getMessageFromReceiverLinkReturnsNullIfNotReadable ( ) { java . lang . String linkName = "receiver" ; tests . unit . com . microsoft . azure . sdk . iot . device . transport . amqps . AmqpsDeviceOperations amqpsDeviceOperations = mockit . Deencapsulation . newInstance ( tests . unit . com . microsoft . azure . sdk . io...
org . junit . Assert . assertTrue ( ( amqpsMessage == null ) )
testBannerText ( ) { com . blade . Blade blade = com . blade . Blade . of ( ) . bannerText ( "qq" ) ; "<AssertPlaceHolder>" ; } bannerText ( ) { if ( null != ( bannerText ) ) return bannerText ; java . lang . String bannerPath = environment . get ( com . blade . ENV_KEY_BANNER_PATH , null ) ; if ( ( com . blade . kit ....
org . junit . Assert . assertEquals ( "qq" , blade . bannerText ( ) )
testBug644321 ( ) { java . io . File wsdl = getCodegenQEDataFileInput ( "AccountService" 7 ) ; java . lang . String [ ] testArgs1 = new java . lang . String [ ] { "AccountService" 3 , "AccountService" , "-genType" , "AccountService" 8 , "-wsdl" , wsdl . getAbsolutePath ( ) , "AccountService" 4 , destDir . getAbsolutePa...
org . junit . Assert . assertTrue ( baseConsumer . exists ( ) )
testHashCode ( ) { org . eclipse . aether . repository . Authentication auth1 = new org . eclipse . aether . util . repository . StringAuthentication ( "key" , "value" ) ; org . eclipse . aether . repository . Authentication auth2 = new org . eclipse . aether . util . repository . StringAuthentication ( "key" , "value"...
org . junit . Assert . assertEquals ( auth1 . hashCode ( ) , auth2 . hashCode ( ) )
doc2Test ( ) { com . redhat . lightblue . query . Projection p = com . redhat . lightblue . query . Projection . fromJson ( com . redhat . lightblue . util . JsonUtils . json ( doc2 ) ) ; "<AssertPlaceHolder>" ; com . redhat . lightblue . query . FieldProjection x = ( ( com . redhat . lightblue . query . FieldProjectio...
org . junit . Assert . assertTrue ( ( p instanceof com . redhat . lightblue . query . FieldProjection ) )
testParseCommands ( ) { java . lang . String q = "table<sp>limit=1000000<sp>local\\arko-guro<sp>|<sp>search<sp>sip<sp>contain<sp>\"10.1.\"<sp>|<sp>stats<sp>count<sp>by<sp>sip" ; java . util . List < java . lang . String > commands = org . araqne . logdb . query . parser . QueryTokenizer . parseCommands ( q ) ; "<Assert...
org . junit . Assert . assertEquals ( 3 , commands . size ( ) )
testActivate ( ) { eventHandler = newSingleThreadExecutor ( groupedThreads ( "onos/security/store" , "event-handler" , log ) ) ; "<AssertPlaceHolder>" ; } groupedThreads ( java . lang . String , java . lang . String , org . slf4j . Logger ) { if ( logger == null ) { return org . onlab . util . Tools . groupedThreads ( ...
org . junit . Assert . assertNotNull ( eventHandler )
forEach ( ) { com . gs . collections . api . bag . MutableBag < java . lang . Integer > result = com . gs . collections . impl . bag . mutable . HashBag . newBag ( ) ; com . gs . collections . api . bag . sorted . ImmutableSortedBag < java . lang . Integer > collection = this . classUnderTest ( ) ; collection . forEach...
org . junit . Assert . assertEquals ( collection , result )
testGetInputStreamByPartIdAndContentId ( ) { java . io . File file = new java . io . File ( com . elasticinbox . core . message . MimeParserTest . TEST_INLINE_ATTACH_FILE ) ; java . io . InputStream in = new java . io . FileInputStream ( file ) ; com . elasticinbox . core . message . MimeParser mp = new com . elasticin...
org . junit . Assert . assertEquals ( attachmentHashByPartId , attachmentHashByContentId )
testSerialization ( ) { org . jfree . chart . renderer . xy . XYBlockRenderer r1 = new org . jfree . chart . renderer . xy . XYBlockRenderer ( ) ; org . jfree . chart . renderer . xy . XYBlockRenderer r2 = ( ( org . jfree . chart . renderer . xy . XYBlockRenderer ) ( org . jfree . chart . TestUtils . serialised ( r1 ) ...
org . junit . Assert . assertEquals ( r1 , r2 )
inequalityWithNull ( ) { com . fiveamsolutions . plc . jaas . UserRole testRole = new com . fiveamsolutions . plc . jaas . UserRole ( "testRole" ) ; "<AssertPlaceHolder>" ; } equals ( java . lang . Object ) { if ( ! ( obj instanceof com . fiveamsolutions . plc . jaas . UserPrincipal ) ) { return false ; } if ( ( this )...
org . junit . Assert . assertFalse ( testRole . equals ( null ) )
kapuaNotifyMessageConstructor ( ) { org . eclipse . kapua . service . device . management . commons . message . notification . KapuaNotifyMessageImpl kapuaNotifyMessage = new org . eclipse . kapua . service . device . management . commons . message . notification . KapuaNotifyMessageImpl ( ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertNotNull ( kapuaNotifyMessage )
setUriShouldFailIfNoTypeDefined ( ) { org . apache . uima . resource . metadata . TypeSystemDescription inputTS = new org . apache . uima . resource . metadata . impl . TypeSystemDescription_impl ( ) ; org . apache . uima . cas . CAS cas = org . apache . uima . util . CasCreationUtils . createCas ( inputTS , null , nul...
org . junit . Assert . assertEquals ( null , com . textocat . textokit . commons . util . DocumentUtils . getDocumentUri ( cas ) )
testIn ( ) { try { org . talend . dq . dbms . DbmsLanguage dbms = getMysqlDbmsLanguage ( ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ) { org . junit . Assert . fail ( e . getMessage ( ) ) ; } } in ( ) { return "<sp>IN<sp>" ; }
org . junit . Assert . assertNotNull ( dbms . in ( ) )
testStringToBigInteger ( ) { java . math . BigInteger bn = new java . math . BigInteger ( java . lang . String . valueOf ( java . lang . System . currentTimeMillis ( ) ) ) ; java . lang . Object result = getConverter ( java . lang . String . class , java . math . BigInteger . class ) . toWidgetValue ( bn . toString ( )...
org . junit . Assert . assertEquals ( bn , result )
testRows ( ) { org . pentaho . di . sdk . samples . embedding . CapturingTransformationRows . main ( new java . lang . String [ 0 ] ) ; java . util . List < java . lang . Object [ ] > rows = CapturingTransformationRows . instance . capturedRows ; "<AssertPlaceHolder>" ; } main ( java . lang . String [ ] ) { try { org ....
org . junit . Assert . assertTrue ( ( ( rows . size ( ) ) > 0 ) )
testProcessInNoContent ( ) { org . hawkular . apm . api . model . config . CollectorConfiguration cc = new org . hawkular . apm . api . model . config . CollectorConfiguration ( ) ; org . hawkular . apm . api . model . config . txn . TransactionConfig btc = new org . hawkular . apm . api . model . config . txn . Transa...
org . junit . Assert . assertFalse ( service . hasProperty ( "test" ) )
testSerialization ( ) { org . jfree . data . xy . YInterval i1 = new org . jfree . data . xy . YInterval ( 1.0 , 0.5 , 1.5 ) ; org . jfree . data . xy . YInterval i2 = ( ( org . jfree . data . xy . YInterval ) ( org . jfree . chart . TestUtils . serialised ( i1 ) ) ) ; "<AssertPlaceHolder>" ; } serialised ( java . lang...
org . junit . Assert . assertEquals ( i1 , i2 )
testHeapSort2 ( ) { int [ ] input = new int [ ] { 3 , 2 , 1 } ; int [ ] result = new int [ ] { 1 , 2 , 3 } ; chapter3 . heapsort . JaegyuHeapSort heapsort = new chapter3 . heapsort . JaegyuHeapSort ( ) ; "<AssertPlaceHolder>" ; } sort ( int [ ] ) { heapSort ( input , ( ( input . length ) - 1 ) ) ; org . apache . common...
org . junit . Assert . assertArrayEquals ( result , heapsort . sort ( input ) )
getTaskByWorkItemId_ReturnsNoneTasksTest ( ) { final long workItemId = 1L ; final java . lang . String serverTemplateId = "serverTemplateId" ; when ( userTaskServicesClient . findTaskByWorkItemId ( any ( ) ) ) . thenReturn ( null ) ; org . jbpm . workbench . ht . model . TaskSummary taskSummary = remoteTaskService . ge...
org . junit . Assert . assertNull ( taskSummary )
testGetShort ( ) { short data = 32765 ; byte [ ] bytes = new byte [ ] { ( ( byte ) ( ( data > > 8 ) & 255 ) ) , ( ( byte ) ( data & 255 ) ) } ; final com . yandex . yoctodb . util . buf . Buffer buf = com . yandex . yoctodb . util . buf . Buffer . from ( bytes ) ; short result = buf . getShort ( ) ; "<AssertPlaceHolder...
org . junit . Assert . assertEquals ( data , result )
testPolygonInteriorRing ( ) { ucar . nc2 . ft2 . simpgeometry . CFPolygon testOut = new ucar . nc2 . ft2 . simpgeometry . CFPolygon ( ) ; testOut . setInteriorRing ( true ) ; "<AssertPlaceHolder>" ; } getInteriorRing ( ) { return isInteriorRing ; }
org . junit . Assert . assertEquals ( testOut . getInteriorRing ( ) , true )
checkAdminAccessToUser ( ) { final org . sentilo . web . catalog . domain . User resource = new org . sentilo . web . catalog . domain . User ( "1" ) ; resource . setTenantId ( org . sentilo . web . catalog . test . security . access . AccessControlServiceImplTest . USER_TENANT_ID ) ; when ( userDetails . isAdminUser (...
org . junit . Assert . assertTrue ( allowedCRUDL )
testGetClassStructures ( ) { java . util . List < com . liferay . dynamic . data . mapping . kernel . DDMStructure > structures = com . liferay . dynamic . data . mapping . kernel . DDMStructureManagerUtil . getClassStructures ( _group . getCompanyId ( ) , _classNameId , QueryUtil . ALL_POS , QueryUtil . ALL_POS ) ; in...
org . junit . Assert . assertEquals ( structures . toString ( ) , ( initialSize + 1 ) , structures . size ( ) )
testWritableSerialization ( ) { org . apache . hadoop . io . Text before = new org . apache . hadoop . io . Text ( "test<sp>writable" ) ; org . apache . hadoop . io . Text after = org . apache . hadoop . io . serializer . SerializationTestUtil . testSerialization ( org . apache . hadoop . io . serializer . TestWritable...
org . junit . Assert . assertEquals ( before , after )
testConstructorReferences12a ( ) { org . codehaus . jdt . groovy . model . GroovyCompilationUnit foo = createUnit ( "p" , "<sp>Foo(int<sp>i)<sp>{this()}\n" 1 , ( "package<sp>p\n" + ( ( ( ( ( ( ( ( "<sp>Foo(int<sp>i)<sp>{this()}\n" 2 + "<sp>Foo(int<sp>i)<sp>{this()}\n" ) + "<sp>Foo(String<sp>s<sp>=<sp>\'\')<sp>{}\n" ) +...
org . junit . Assert . assertEquals ( 3 , ctorRefs )
testGetDefault ( ) { classUnderTest . setDefault ( "aTestString" ) ; "<AssertPlaceHolder>" ; } getDefault ( ) { return this . fieldDefault ; }
org . junit . Assert . assertEquals ( "aTestString" , classUnderTest . getDefault ( ) )
testSuperReferenceExpression ( ) { class Y { int foo ( java . lang . Integer i ) { return 42 ; } } class X extends Y { int foo ( java . lang . Integer i ) { return 23 ; } int goo ( ) { org . robovm . rt . lambdas . Java8Test . I i = super :: foo ; return i . foo ( 0 ) ; } } "<AssertPlaceHolder>" ; } foo ( int ) { }
org . junit . Assert . assertEquals ( 42 , new X ( ) . goo ( ) )
testSquare ( ) { edu . ucla . sspace . graph . isomorphism . Graph < edu . ucla . sspace . graph . isomorphism . Edge > g1 = new edu . ucla . sspace . graph . isomorphism . SparseUndirectedGraph ( ) ; g1 . add ( new edu . ucla . sspace . graph . isomorphism . SimpleEdge ( 1 , 2 ) ) ; g1 . add ( new edu . ucla . sspace ...
org . junit . Assert . assertTrue ( isoTest . areIsomorphic ( g1 , g2 ) )
deleteTest ( ) { cn . stylefeng . guns . modular . system . entity . Dept dept = this . deptMapper . selectById ( 24 ) ; java . lang . Integer integer = deptMapper . deleteById ( dept ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertTrue ( ( integer > 0 ) )
shouldNotCountSingleValue ( ) { meter . mark ( 10 ) ; "<AssertPlaceHolder>" ; } getCount ( ) { return delegate . getCount ( ) ; }
org . junit . Assert . assertThat ( meter . getCount ( ) , org . hamcrest . CoreMatchers . equalTo ( 0L ) )
testDelete ( ) { when ( diagramServiceController . delete ( diagram ) ) . thenReturn ( true ) ; boolean result = diagramService . delete ( diagram ) ; verify ( diagramServiceController , times ( 1 ) ) . delete ( diagram ) ; "<AssertPlaceHolder>" ; } delete ( org . uberfire . backend . vfs . ObservablePath ) { deletePop...
org . junit . Assert . assertTrue ( result )
testClone ( ) { org . apache . flink . api . common . accumulators . DoubleMaximum max = new org . apache . flink . api . common . accumulators . DoubleMaximum ( ) ; double value = 3.14159265359 ; max . add ( value ) ; org . apache . flink . api . common . accumulators . DoubleMaximum clone = max . clone ( ) ; "<Assert...
org . junit . Assert . assertEquals ( value , clone . getLocalValue ( ) , 0.0 )
testJoinSecurityGroupString ( ) { try { com . fit2cloud . aliyun . Response response = client . joinSecurityGroup ( "i-25thdni7b" , "Gac00d621-5928-449a-80a8-9e8d34cf691b" ) ; System . out . println ( ( "testJoinSecurityGroupString<sp>::<sp>" + response ) ) ; "<AssertPlaceHolder>" ; } catch ( java . lang . Exception e ...
org . junit . Assert . assertTrue ( true )
showBillingDataStep_forSupplier ( ) { model . setBillingSharesResultTypes ( java . util . Arrays . asList ( BillingSharesResultType . SUPPLIER ) ) ; boolean result = ctrl . isShowBillingTypeSelectStep ( ) ; "<AssertPlaceHolder>" ; } isShowBillingTypeSelectStep ( ) { if ( ( model . getBillingSharesResultTypes ( ) ) == n...
org . junit . Assert . assertTrue ( result )
testReturnsTrueWhenMatchesDefinedTextArgumentMVEL ( ) { addMessageToContextWithPayload ( "TESTfooTEST" ) ; boolean result = ( ( java . lang . Boolean ) ( expressionExecutor . execute ( "wildcard('TEST*TEST',<sp>'TESTfooTEST')" , context ) ) ) ; "<AssertPlaceHolder>" ; } execute ( org . mule . runtime . extension . api ...
org . junit . Assert . assertTrue ( result )
collectWith ( ) { com . gs . collections . api . collection . ImmutableCollection < java . lang . Integer > integers = this . classUnderTest ( ) ; com . gs . collections . api . collection . ImmutableCollection < java . lang . String > expected = integers . collect ( com . gs . collections . impl . block . factory . Fu...
org . junit . Assert . assertEquals ( expected , actual )
testLocalQueries ( ) { for ( org . biojava . bio . alignment . AlignmentPair alignmentPair : align . local ( queries , subjects ) ) { "<AssertPlaceHolder>" ; } } local ( org . biojava . bio . seq . Sequence , org . biojava . bio . seq . Sequence ) { return local ( com . google . common . collect . ImmutableList . of ( ...
org . junit . Assert . assertNotNull ( alignmentPair )
testSelectEmptyNotIn ( ) { createArtistsDataSet ( ) ; org . apache . cayenne . query . SelectQuery < org . apache . cayenne . testdo . testmap . Artist > query = new org . apache . cayenne . query . SelectQuery ( org . apache . cayenne . testdo . testmap . Artist . class ) ; org . apache . cayenne . exp . Expression qu...
org . junit . Assert . assertEquals ( 20 , objects . size ( ) )
shouldReturnFalseIfNoneFound ( ) { java . lang . String text = "This<sp>is<sp>a<sp>test<sp>string" ; boolean result = fr . xephi . authme . util . StringUtils . containsAny ( text , asList ( "some" , "other" , "words" , null ) ) ; "<AssertPlaceHolder>" ; }
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . equalTo ( false ) )